toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'connectedWebsite',
    if (extra != null) '@extra': extra,
    'id': id,
    'domain_name': domain_name,
    'bot_user_id': bot_user_id,
    'browser': browser,
    'platform': platform,
    'log_in_date': log_in_date,
    'last_active_date': last_active_date,
    'ip_address': ip_address,
    'location': location
  };
}