V2TimMessageReactionResult.fromJson constructor

V2TimMessageReactionResult.fromJson(
  1. Map json
)

Implementation

V2TimMessageReactionResult.fromJson(Map json) {
  json = Utils.formatJson(json);
  resultCode = json['resultCode'] ?? 0;
  resultInfo = json['resultInfo'] ?? "";
  messageID = json['messageID'] ?? "";
  if (json['reactionList'] != null) {
    reactionList = List.empty(growable: true);
    json['reactionList'].forEach((v) {
      reactionList?.add(V2TimMessageReaction.fromJson(v));
    });
  } else {
    reactionList = [];
  }
}