UCommentReadParams.fromMap constructor
UCommentReadParams.fromMap(
- Map<String, dynamic> json
)
Implementation
factory UCommentReadParams.fromMap(Map<String, dynamic> json) => UCommentReadParams(
creatorId: json["creatorId"],
productId: json["productId"],
blogId: json["blogId"],
userId: json["userId"],
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"]),
selectorArgs: json["selectorArgs"] == null ? null : CommentSelectorArgs.fromMap(json["selectorArgs"]),
tags: json["tags"] == null ? null : List<int>.from(json["tags"].map((dynamic x) => x)),
orderBy: json["orderBy"],
ids: json["ids"] == null ? <String>[] : List<String>.from(json["ids"]!.map((dynamic x) => x)),
);