UCommentCreateParams.fromMap constructor

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

Implementation

factory UCommentCreateParams.fromMap(Map<String, dynamic> json) => UCommentCreateParams(
  description: json["description"],
  score: json["score"] ?? 0,
  reaction: json["reaction"],
  parentId: json["parentId"],
  productId: json["productId"],
  blogId: json["blogId"],
  userId: json["userId"],
  creatorId: json["creatorId"],
  tags: List<int>.from(json["tags"].map((dynamic x) => x)),
  detail1: json["detail1"],
  detail2: json["detail2"],
  id: json["id"],
  adminUserIds: json["adminUserIds"] == null ? <String>[] : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
);