CreateWebRTCTransportResponse.fromJson constructor

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

Implementation

factory CreateWebRTCTransportResponse.fromJson(Map<String, dynamic> json) {
  return CreateWebRTCTransportResponse(
    id: json['id'] as String,
    dtlsParameters: DtlsParameters.fromMap(json['dtlsParameters']),
    iceCandidates: List<IceCandidate>.from(
        (json['iceCandidates'] as List).map((x) => IceCandidate.fromMap(x))),
    iceParameters: IceParameters.fromMap(json['iceParameters']),
    error: json['error'] as String?,
  );
}