toJson method

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

Converts an InputContactMessageContent object to a JSON map

Implementation

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