getFieldDeserializers method
The deserialization information for the current model
Implementation
@override
Map<String, void Function(ParseNode)> getFieldDeserializers() {
var deserializerMap = <String, void Function(ParseNode)>{};
deserializerMap['custom_fields'] = (node) => customFields =
node.getCollectionOfObjectValues<InvoiceSettingCustomField>(
InvoiceSettingCustomField.createFromDiscriminatorValue);
deserializerMap['default_payment_method'] = (node) => defaultPaymentMethod =
node.getObjectValue<InvoiceSettingCustomerSettingDefaultPaymentMethod>(
InvoiceSettingCustomerSettingDefaultPaymentMethod
.createFromDiscriminatorValue);
deserializerMap['footer'] = (node) => footer = node.getStringValue();
deserializerMap['rendering_options'] = (node) => renderingOptions =
node.getObjectValue<InvoiceSettingCustomerRenderingOptions>(
InvoiceSettingCustomerRenderingOptions
.createFromDiscriminatorValue);
return deserializerMap;
}