created date added.

design_3.0_asset_inventory_module
Sikander Saleem 3 days ago
parent 4a283a685c
commit 78cec1c69c

@ -1,8 +1,8 @@
import 'package:test_sa/models/new_models/site.dart';
class SessionModel {
int? id;
String? createdDate;
String? sessionName;
int? sessionTypeId;
int? sessionTypeValue;
@ -17,6 +17,7 @@ class SessionModel {
SessionModel({
this.id,
this.sessionName,
this.createdDate,
this.sessionTypeId,
this.sessionTypeValue,
this.sessionTypeName,
@ -38,6 +39,7 @@ class SessionModel {
sessionTypeValue = json['sessionTypeValue'];
sessionTypeName = json['sessionTypeName'];
statusId = json['statusId'];
createdDate = json['createdDate'];
statusName = json['statusName'];
startDate = json['startDate'];
endDate = json['endDate'];
@ -60,6 +62,7 @@ class SessionModel {
map['sessionTypeName'] = sessionTypeName;
map['statusId'] = statusId;
map['statusName'] = statusName;
map['createdDate'] = createdDate;
map['startDate'] = startDate;
map['endDate'] = endDate;
map['assetInventorySites'] = assetInventorySites.map((e) => e.toJson()).toList();

@ -56,7 +56,7 @@ class _AssetInventoryDetailViewState extends State<AssetInventoryDetailView> {
backgroundColor: AppColor.greenStatus(context),
),
Text(
sessionModel.startDate!.toString().toServiceRequestCardFormat,
sessionModel.createdDate!.toString().toServiceRequestCardFormat,
textAlign: TextAlign.end,
style: AppTextStyles.tinyFont.copyWith(color: context.isDark ? AppColor.neutral30 : AppColor.neutral50),
)
@ -73,7 +73,7 @@ class _AssetInventoryDetailViewState extends State<AssetInventoryDetailView> {
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
),
Text(
'${'Session Typ'.addTranslation}: ${sessionModel.sessionTypeName}',
'${'Session Type'.addTranslation}: ${sessionModel.sessionTypeName}',
style: AppTextStyles.bodyText.copyWith(color: context.isDark ? AppColor.neutral10 : AppColor.neutral120),
),
Text(

Loading…
Cancel
Save