fromJson static method

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

Implementation

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

  return GroupCallParticipantVideoInfo(
    sourceGroups: List<GroupCallVideoSourceGroup>.from(
      tdListFromJson(json['source_groups'])
          .map(
            (item) => GroupCallVideoSourceGroup.fromJson(tdMapFromJson(item)),
          )
          .whereType<GroupCallVideoSourceGroup>(),
    ),
    endpointId: (json['endpoint_id'] as String?) ?? '',
    isPaused: (json['is_paused'] as bool?) ?? false,
  );
}