V2TimConversationResult.fromJson constructor

V2TimConversationResult.fromJson(
  1. Map json
)

Implementation

V2TimConversationResult.fromJson(Map json) {
  json = Utils.formatJson(json);
  nextSeq = json['conversation_list_result_next_seq']?.toString() ?? "";
  isFinished = json['conversation_list_result_is_finished'] ?? true;
  if (json['conversation_list_result_conv_list'] != null) {
    conversationList = List.empty(growable: true);
    json['conversation_list_result_conv_list'].forEach((v) {
      conversationList!.add(V2TimConversation.fromJson(v));
    });
  } else {
    conversationList = [];
  }
}