InputContactMessageContent.fromJson constructor

InputContactMessageContent.fromJson(
  1. Map<String, dynamic> json
)

Constructs an InputContactMessageContent object from a JSON map

Implementation

factory InputContactMessageContent.fromJson(Map<String, dynamic> json) {
  return InputContactMessageContent(
    phoneNumber: json['phone_number'] as String,
    firstName: json['first_name'] as String,
    lastName: json['last_name'] as String?,
    vcard: json['vcard'] as String?,
  );
}