fromJson static method

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

Implementation

static VideoChat? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return VideoChat(
    groupCallId: (json['group_call_id'] as int?) ?? 0,
    hasParticipants: (json['has_participants'] as bool?) ?? false,
    defaultParticipantId: MessageSender.fromJson(
      tdMapFromJson(json['default_participant_id']),
    ),
  );
}