toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'callProtocol',
    if (extra != null) '@extra': extra,
    'udp_p2p': udp_p2p,
    'udp_reflector': udp_reflector,
    'min_layer': min_layer,
    'max_layer': max_layer,
    'library_versions': library_versions
  };
}