toJson method

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

Implementation

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