GroupCallParticipantVideoInfo.fromJson constructor

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

Parses a GroupCallParticipantVideoInfo from TDLib JSON.

Implementation

factory GroupCallParticipantVideoInfo.fromJson(Map<String, dynamic> json) =>
    GroupCallParticipantVideoInfo(
      sourceGroups: _readList<GroupCallVideoSourceGroup>(
        json['source_groups'],
        (e) => _readObject(e, GroupCallVideoSourceGroup.fromJson),
      ),
      endpointId: _readString(json['endpoint_id']),
      isPaused: _readBool(json['is_paused']),
    );