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"],
      targetUserId: json["targetUserId"],
      userId: json["userId"],
      tags: List<int>.from(json["tags"].map((dynamic x) => x)),
    );