toJson method

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

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'phoneNumberInfo',
    if (extra != null) '@extra': extra,
    'country': country,
    'country_calling_code': country_calling_code,
    'formatted_phone_number': formatted_phone_number,
    'is_anonymous': is_anonymous
  };
}