getFieldDeserializers method
The deserialization information for the current model
Implementation
@override
Map<String, void Function(ParseNode)> getFieldDeserializers() {
var deserializerMap = <String, void Function(ParseNode)>{};
deserializerMap['bank_transfer'] = (node) => bankTransfer =
node.getObjectValue<
CheckoutCustomerBalanceBankTransferPaymentMethodOptions>(
CheckoutCustomerBalanceBankTransferPaymentMethodOptions
.createFromDiscriminatorValue);
deserializerMap['funding_type'] = (node) => fundingType = node
.getEnumValue<CheckoutCustomerBalancePaymentMethodOptionsFundingType>(
(stringValue) =>
CheckoutCustomerBalancePaymentMethodOptionsFundingType.values
.where((enumVal) => enumVal.value == stringValue)
.firstOrNull);
deserializerMap['setup_future_usage'] = (node) => setupFutureUsage =
node.getEnumValue<
CheckoutCustomerBalancePaymentMethodOptionsSetupFutureUsage>(
(stringValue) =>
CheckoutCustomerBalancePaymentMethodOptionsSetupFutureUsage
.values
.where((enumVal) => enumVal.value == stringValue)
.firstOrNull);
return deserializerMap;
}