fromJsObj static method

V2TimMessageReaction fromJsObj(
  1. Map<String, dynamic> data
)

Implementation

static V2TimMessageReaction fromJsObj(Map<String, dynamic> data) {
  return V2TimMessageReaction.fromJson({
    "reactionID": data["reactionID"] ?? "",
    "totalUserCount": data["totalUserCount"] ?? 0,
    "reactedByMyself": data["reactedByMyself"] ?? false,
    "partialUserList": V2TimUserInfoWeb.fromJsObjs(
            List<dynamic>.from(data["partialUserList"] ?? []))
        .map((e) => e.toJson())
        .toList(),
  });
}