toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "@type": CONSTRUCTOR,
    "protocol": this.protocol == null ? null : this.protocol.toJson(),
    "servers": this.servers.map((i) => i.toJson()).toList(),
    "config": this.config,
    "encryption_key": this.encryptionKey,
    "emojis": this.emojis.map((i) => i).toList(),
    "allow_p2p": this.allowP2p,
  };
}