UUserReadParams.fromMap constructor

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

Implementation

factory UUserReadParams.fromMap(Map<String, dynamic> json) => UUserReadParams(
  query: json["query"],
  userName: json["userName"],
  landLine: json["landLine"],
  firstName: json["firstName"],
  lastName: json["lastName"],
  nationalCode: json["nationalCode"],
  phoneNumber: json["phoneNumber"],
  email: json["email"],
  bio: json["bio"],
  startBirthDate: json["startBirthDate"] == null ? null : DateTime.parse(json["startBirthDate"]),
  endBirthDate: json["endBirthDate"] == null ? null : DateTime.parse(json["endBirthDate"]),
  categories: json["categories"] == null ? null : List<String>.from(json["categories"].map((dynamic x) => x)),
  pageSize: json["pageSize"] ?? 0,
  pageNumber: json["pageNumber"] ?? 0,
  fromCreatedAt: json["fromCreatedAt"] == null ? null : DateTime.parse(json["fromCreatedAt"]),
  toCreatedAt: json["toCreatedAt"] == null ? null : DateTime.parse(json["toCreatedAt"]),
  tags: json["tags"] == null ? null : List<int>.from(json["tags"].map((dynamic x) => x)),
  selectorArgs: json["selectorArgs"] == null ? null : UserSelectorArgs.fromMap(json["selectorArgs"]),
  orderBy: json["orderBy"],
  ids: json["ids"] == null ? <String>[] : List<String>.from(json["ids"]!.map((dynamic x) => x)),
  creatorId: json["creatorId"],
);