CallProtocol.fromJson constructor

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

Parse from a json

Implementation

factory CallProtocol.fromJson(Map<String, dynamic> json) => CallProtocol(
  udpP2p: json['udp_p2p'],
  udpReflector: json['udp_reflector'],
  minLayer: json['min_layer'],
  maxLayer: json['max_layer'],
  libraryVersions: List<String>.from((json['library_versions'] ?? []).map((item) => item).toList()),
);