toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'proxy',
    if (extra != null) '@extra': extra,
    'id': id,
    'server': server,
    'port': port,
    'last_used_date': last_used_date,
    'is_enabled': is_enabled,
    'type': type
  };
}