room model changed to json.

design_3.0_demo_module
Sikander Saleem 8 hours ago
parent 59a5103cf1
commit 0a6fca7f63

@ -1,7 +1,7 @@
class URLs {
URLs._();
static const String appReleaseBuildNumber = "34";
static const String appReleaseBuildNumber = "35";
static const host1 = "https://atomsm.hmg.com"; // production url
// static const host1 = "https://atomsmdev.hmg.com"; // local DEV url

@ -127,7 +127,7 @@ class WorkOrderData {
Lookup? building;
Lookup? floor;
AssetGroup? department;
int? room;
Lookup? room;
Lookup? assetType;
WorkOrderAssignedEmployee? assignedEmployee;
Lookup? lastActivityStatus;
@ -195,7 +195,7 @@ class WorkOrderData {
building: json["building"] == null ? null : Lookup.fromJson(json["building"]),
floor: json["floor"] == null ? null : Lookup.fromJson(json["floor"]),
department: json["department"] == null ? null : AssetGroup.fromJson(json["department"]),
room: json["room"],
room: json["room"] == null ? null : Lookup.fromJson(json["room"]),
rejectComment: json["rejectComment"],
callResponse: json["callResponse"],
descriptionOfFinding: json["descriptionOfFinding"],
@ -263,7 +263,7 @@ class WorkOrderData {
"building": building?.toJson(),
"floor": floor?.toJson(),
"department": department?.toJson(),
"room": room,
"room": room?.toJson(),
"assetType": assetType?.toJson(),
"assignedEmployee": assignedEmployee?.toJson(),
"lastActivityStatus": lastActivityStatus,

@ -232,7 +232,7 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
),
Text(
'${context.translation.room}: ${(workOrder.room?.toString() ?? "").cleanupWhitespace?.capitalizeFirstOfEach}',
'${context.translation.room}: ${(workOrder.room?.name ?? "").cleanupWhitespace?.capitalizeFirstOfEach}',
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
),
],

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.7.0+34
version: 1.7.1+35
environment:
sdk: ">=3.5.0 <4.0.0"

Loading…
Cancel
Save