getFieldDeserializers method
The deserialization information for the current model
Implementation
@override
Map<String, void Function(ParseNode)> getFieldDeserializers() {
var deserializerMap = <String, void Function(ParseNode)>{};
deserializerMap['active_from'] = (node) => activeFrom = node.getIntValue();
deserializerMap['country'] = (node) => country = node.getStringValue();
deserializerMap['country_options'] = (node) => countryOptions =
node.getObjectValue<TaxProductRegistrationsResourceCountryOptions>(
TaxProductRegistrationsResourceCountryOptions
.createFromDiscriminatorValue);
deserializerMap['created'] = (node) => created = node.getIntValue();
deserializerMap['expires_at'] = (node) => expiresAt = node.getIntValue();
deserializerMap['id'] = (node) => id = node.getStringValue();
deserializerMap['livemode'] = (node) => livemode = node.getBoolValue();
deserializerMap['object'] = (node) => object =
node.getEnumValue<RegistrationObject>((stringValue) =>
RegistrationObject.values
.where((enumVal) => enumVal.value == stringValue)
.firstOrNull);
deserializerMap['status'] = (node) => status =
node.getEnumValue<RegistrationStatus>((stringValue) =>
RegistrationStatus.values
.where((enumVal) => enumVal.value == stringValue)
.firstOrNull);
return deserializerMap;
}