toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
  "id": id,
  "serial": serial,
  "simCardNumber": simCardNumber,
  "simCardSerial": simCardSerial,
  "imei": imei,
  "terminalId": terminalId,
  "insId": insId,
  "merchantId": merchantId,
  "terminalBrandId": terminalBrandId,
  "terminalBrokerId": terminalBrokerId,
  if (detail1 != null) "detail1": detail1,
  if (detail2 != null) "detail2": detail2,
  if (addTags != null) "addTags": List<dynamic>.from(addTags!.map((int x) => x)),
  if (removeTags != null) "removeTags": List<dynamic>.from(removeTags!.map((int x) => x)),
  if (tags != null) "tags": List<dynamic>.from(tags!.map((int x) => x)),
  if (adminUserIds != null) "adminUserIds": List<dynamic>.from(adminUserIds!.map((String x) => x)),
  if (addAdminUserIds != null) "addAdminUserIds": List<dynamic>.from(addAdminUserIds!.map((String x) => x)),
  if (removeAdminUserIds != null) "removeAdminUserIds": List<dynamic>.from(removeAdminUserIds!.map((String x) => x)),
};