CreateExistingCustomerInput.fromJson constructor
Implementation
factory CreateExistingCustomerInput.fromJson(
Map<String, Object?> json,
) =>
CreateExistingCustomerInput(
paymentMethodId: json["payment_method_id"] == null
? null
: json["payment_method_id"] as String,
paymentMethodData: json["payment_method_data"] == null
? null
: inttegro_payment_method.DataInput.fromJson(
(json["payment_method_data"] as Map).cast<String, Object?>(),
),
receiptNumber: json["receipt_number"] == null
? null
: json["receipt_number"] as String,
statementDescriptor: json["statement_descriptor"] == null
? null
: json["statement_descriptor"] as String,
statementDescriptorPrefix: json["statement_descriptor_prefix"] == null
? null
: json["statement_descriptor_prefix"] as String,
executePayment: json["execute_payment"] == null
? null
: json["execute_payment"] as bool,
finalize: json["finalize"] == null ? null : json["finalize"] as bool,
requestMeta: json["request_meta"] == null
? null
: CreateExistingCustomerInputRequestMeta.fromJson(
(json["request_meta"] as Map).cast<String, Object?>(),
),
checkoutSettings: json["checkout_settings"] == null
? null
: CreateExistingCustomerInputCheckoutSettings.fromJson(
(json["checkout_settings"] as Map).cast<String, Object?>(),
),
invoiceSettings: json["invoice_settings"] == null
? null
: inttegro_checkout.InvoiceSettingsInput.fromJson(
(json["invoice_settings"] as Map).cast<String, Object?>(),
),
payoutSettings: json["payout_settings"] == null
? null
: PayoutSettingsRequest.fromJson(
(json["payout_settings"] as Map).cast<String, Object?>(),
),
customData: json["custom_data"] == null
? null
: core.CustomData.fromJson(json["custom_data"]),
billingDetails: json["billing_details"] == null
? null
: inttegro_checkout.BillingDetailsInput.fromJson(
(json["billing_details"] as Map).cast<String, Object?>(),
),
shipping: json["shipping"] == null
? null
: ShippingInput.fromJson(
(json["shipping"] as Map).cast<String, Object?>(),
),
customerId: json["customer_id"] as String,
lineItems:
(json["line_items"] as List).map(LineItemInput.fromJson).toList(),
);