CallStateReady.fromJson constructor

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

Parse from a json

Implementation

CallStateReady.fromJson(Map<String, dynamic> json) {
  this.protocol =
      CallProtocol.fromJson(json['protocol'] ?? <String, dynamic>{});
  this.servers = List<CallServer>.from((json['servers'] ?? [])
      .map((item) => CallServer.fromJson(item ?? <String, dynamic>{}))
      .toList());
  this.config = json['config'];
  this.encryptionKey = json['encryption_key'];
  this.emojis =
      List<String>.from((json['emojis'] ?? []).map((item) => item).toList());
  this.allowP2p = json['allow_p2p'];
}