FeeDetailsInput.fromJson constructor

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

Implementation

factory FeeDetailsInput.fromJson(Map<String, Object?> json) =>
    FeeDetailsInput(
      id: json["id"] == null ? null : json["id"] as String,
      label: json["label"] == null ? null : json["label"] as String,
      taxCode: json["tax_code"] == null ? null : json["tax_code"] as String,
      description:
          json["description"] == null ? null : json["description"] as String,
      customData: json["custom_data"] == null
          ? null
          : core.CustomDataInput.fromJson(json["custom_data"]),
      amount: inttegro_money.AmountParams.fromJson(
        (json["amount"] as Map).cast<String, Object?>(),
      ),
    );