toJson method

Map<String, dynamic> toJson()

Converts a Contact object to json.

Implementation

Map<String, dynamic> toJson() {
  return {
    'phone_number': phoneNumber,
    'first_name': firstName,
    'last_name': lastName,
    'user_id': userId,
    'vcard': vcard,
  }..removeWhere(_nullFilter);
}