GroupCallParticipantVideoInfo.fromJson constructor

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

Parse from a json

Implementation

factory GroupCallParticipantVideoInfo.fromJson(Map<String, dynamic> json) =>
    GroupCallParticipantVideoInfo(
      sourceGroups: List<GroupCallVideoSourceGroup>.from(
          (json['source_groups'] ?? [])
              .map((item) => GroupCallVideoSourceGroup.fromJson(item))
              .toList()),
      endpointId: json['endpoint_id'],
      isPaused: json['is_paused'],
    );