TurnServer.fromJson constructor

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

Creates a TurnServer from a JSON map.

Implementation

factory TurnServer.fromJson(Map<String, dynamic> json) {
  return TurnServer(
    url: json['url'] as String,
    username: json['username'] as String,
    credential: json['credential'] as String,
  );
}