UWalletReadParams.fromMap constructor

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

Implementation

factory UWalletReadParams.fromMap(Map<String, dynamic> json) => UWalletReadParams(
  creatorId: json["creatorId"],
  pageSize: json["pageSize"],
  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)),
  selectorArgs: json["selectorArgs"] == null ? null : WalletSelectorArgs.fromMap(json["selectorArgs"]),
  orderBy: json["orderBy"],
);