room model changed to json.

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

@ -1,7 +1,7 @@
class URLs { class URLs {
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://atomsm.hmg.com"; // production url
// static const host1 = "https://atomsmdev.hmg.com"; // local DEV url // static const host1 = "https://atomsmdev.hmg.com"; // local DEV url

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

@ -232,7 +232,7 @@ class _ServiceRequestDetailViewState extends State<ServiceRequestDetailView> {
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120), style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
), ),
Text( 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), 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. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at # Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.7.0+34 version: 1.7.1+35
environment: environment:
sdk: ">=3.5.0 <4.0.0" sdk: ">=3.5.0 <4.0.0"

Loading…
Cancel
Save