VideoChat.fromJson constructor

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

Parse from a json

Implementation

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