CallStateReady.fromJson constructor

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

Parses a CallStateReady from TDLib JSON.

Implementation

factory CallStateReady.fromJson(Map<String, dynamic> json) => CallStateReady(
  protocol: _readObject(json['protocol'], CallProtocol.fromJson),
  servers: _readList<CallServer>(
    json['servers'],
    (e) => _readObject(e, CallServer.fromJson),
  ),
  config: _readString(json['config']),
  encryptionKey: _readString(json['encryption_key']),
  emojis: _readList<String>(json['emojis'], _readString),
  allowP2p: _readBool(json['allow_p2p']),
  isGroupCallSupported: _readBool(json['is_group_call_supported']),
  customParameters: _readString(json['custom_parameters']),
);