UCategoryReadParams.fromMap constructor

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

Implementation

factory UCategoryReadParams.fromMap(Map<String, dynamic> json) => UCategoryReadParams(
  ids: json["ids"] == null ? null : List<String>.from(json["ids"].map((dynamic x) => x)),
  pageSize: json["pageSize"],
  pageNumber: json["pageNumber"],
  selectorArgs: json["selectorArgs"] == null ? null : CategorySelectorArgs.fromMap(json["selectorArgs"]),
  tags: json["tags"] == null ? null : List<int>.from(json["tags"].map((dynamic x) => x)),
  orderBy: json["orderBy"],
  fromCreatedAt: json["fromCreatedAt"] == null ? null : DateTime.parse(json["fromCreatedAt"]),
  toCreatedAt: json["toCreatedAt"] == null ? null : DateTime.parse(json["toCreatedAt"]),
  creatorId: json["creatorId"],
);