UTerminalReadParams.fromMap constructor

UTerminalReadParams.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UTerminalReadParams.fromMap(Map<String, dynamic> json) => UTerminalReadParams(
  pageSize: json["pageSize"],
  serial: json["serial"],
  pageNumber: json["pageNumber"],
  fromCreatedAt: json["fromCreatedAt"] == null ? null : DateTime.parse(json["fromCreatedAt"]),
  toCreatedAt: json["toCreatedAt"] == null ? null : DateTime.parse(json["toCreatedAt"]),
  tags: json["tags"] == null ? <int>[] : List<int>.from(json["tags"]!.map((dynamic x) => x)),
  ids: json["ids"] == null ? <String>[] : List<String>.from(json["ids"]!.map((dynamic x) => x)),
  creatorId: json["creatorId"],
  merchantId: json["merchantId"],
  selectorArgs: json["selectorArgs"] == null ? null : TerminalSelectorArgs.fromMap(json["selectorArgs"]),
  orderBy: json["orderBy"],
  simCardNumber: json["simCardNumber"],
  simCardSerial: json["simCardSerial"],
  imei: json["imei"],
  terminalId: json["terminalId"],
  insId: json["insId"],
);