IceServer.fromJson constructor

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

Implementation

factory IceServer.fromJson(Map<String, dynamic> json) {
  return IceServer(
    password: json['Password'] as String?,
    ttl: json['Ttl'] as int?,
    uris: (json['Uris'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
    username: json['Username'] as String?,
  );
}