VideoChat.fromJson constructor

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

Parses a VideoChat from TDLib JSON.

Implementation

factory VideoChat.fromJson(Map<String, dynamic> json) => VideoChat(
      groupCallId: _readInt(json['group_call_id']),
      hasParticipants: _readBool(json['has_participants']),
      defaultParticipantId: _readOptional(
          json['default_participant_id'], MessageSender.fromJson),
    );