UDormReadParams.fromMap constructor
UDormReadParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UDormReadParams.fromMap(Map<String, dynamic> json) => UDormReadParams(
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)),
creatorId: json["creatorId"],
title: json["title"],
cityCode: json["cityCode"],
selectorArgs: json["selectorArgs"] == null ? null : DormSelectorArgs.fromMap(json["selectorArgs"]),
orderBy: json["orderBy"],
);