SelectConversationEvent.fromJson constructor

SelectConversationEvent.fromJson(
  1. Map<String, dynamic> json
)

Implementation

SelectConversationEvent.fromJson(Map<String, dynamic> json)
    : conversation = ConversationData.fromJson(json['conversation']),
      me = UserData.fromJson(json['me']),
      others = json['others']
          .map<UserData>((user) => UserData.fromJson(user))
          .toList();