fromJsObj static method

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

Implementation

static V2TIMMessageReactionChangeInfo fromJsObj(Map<String, dynamic> data) {
  return V2TIMMessageReactionChangeInfo.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(),
  });
}