Transport.fromJson constructor

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

Implementation

factory Transport.fromJson(Map<String, dynamic> json) {
  return Transport(
    protocol: (json['protocol'] as String).toProtocol(),
    cidrAllowList: (json['cidrAllowList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    maxBitrate: json['maxBitrate'] as int?,
    maxLatency: json['maxLatency'] as int?,
    remoteId: json['remoteId'] as String?,
    smoothingLatency: json['smoothingLatency'] as int?,
    streamId: json['streamId'] as String?,
  );
}