PhoneRecipientInput.fromJson constructor

PhoneRecipientInput.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory PhoneRecipientInput.fromJson(
  Map<String, Object?> json,
) =>
    PhoneRecipientInput(
      name: json["name"] == null ? null : json["name"] as String,
      phone: PhoneNumberInput.fromJson(
        (json["phone"] as Map).cast<String, Object?>(),
      ),
      type: RecipientType.fromJson(json["type"]),
    );