toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'callServer',
    if (extra != null) '@extra': extra,
    'id': id,
    'ip_address': ip_address,
    'ipv6_address': ipv6_address,
    'port': port,
    'type': type
  };
}