Store.fromJson constructor
Implementation
Store.fromJson(Map<String, dynamic> json) {
createdByUserName = json['createdByUserName'];
updatedByUserName = json['updatedByUserName'];
createdBy = json['createdBy'];
createdDate = json['createdDate'];
updatedBy = json['updatedBy'];
updatedDate = json['updatedDate'];
id = json['id'];
ownerId = json['ownerId'];
description = json['description'];
address =
json['address'] != null ? Address.fromJson(json['address']) : null;
openingTime = json['openingTime'];
closingTime = json['closingTime'];
emailId = json['emailId'];
contactNumber = json['contactNumber'];
hasStoreInventory = json['hasStoreInventory'];
defaultAmount = json['defaultAmount'];
status =
json['status'] != null ? Status.fromJson(json['status']) : null;
name = json['name'];
archived = json['archived'];
location = json['location'];
createdByName = json['createdByName'];
updatedByName = json['updatedByName'];
agentOwnerId = json['agentOwnerId'];
if (json['denominations'] != null) {
denominations = <Denominations>[];
json['denominations'].forEach((v) {
denominations!.add(Denominations.fromJson(v));
});
}
glCode = json['glCode'];
department = json['department'] != null
? Department.fromJson(json['department'])
: null;
satchelNumber = json['satchelNumber'];
satchelNumbers = json['satchelNumbers'].cast<String>();
activeStoreForUser = json['activeStoreForUser'];
if (json['satchelInfoList'] != null) {
satchelInfoList = <SatchelInfoList>[];
json['satchelInfoList'].forEach((v) {
satchelInfoList!.add(SatchelInfoList.fromJson(v));
});
}
}