CreateNewCustomerInput.fromJson constructor
Implementation
factory CreateNewCustomerInput.fromJson(Map<String, Object?> json) =>
CreateNewCustomerInput(
number: json["number"] == null ? null : json["number"] as String,
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
: CreateNewCustomerInputRequestMeta.fromJson(
(json["request_meta"] as Map).cast<String, Object?>(),
),
checkoutSettings: json["checkout_settings"] == null
? null
: CreateNewCustomerInputCheckoutSettings.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?>(),
),
paymentMethodData: json["payment_method_data"] == null
? null
: inttegro_payment_method.DataInput.fromJson(
(json["payment_method_data"] as Map).cast<String, Object?>(),
),
customerData: inttegro_customer.DataInput.fromJson(
(json["customer_data"] as Map).cast<String, Object?>(),
),
lineItems:
(json["line_items"] as List).map(LineItemInput.fromJson).toList(),
);