getFieldDeserializers method
The deserialization information for the current model
Implementation
@override
Map<String, void Function(ParseNode)> getFieldDeserializers() {
var deserializerMap = <String, void Function(ParseNode)>{};
deserializerMap['filters'] = (node) => filters = node.getObjectValue<
PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters>(
PaymentFlowsPrivatePaymentMethodsFinancialConnectionsCommonLinkedAccountOptionsFilters
.createFromDiscriminatorValue);
deserializerMap['permissions'] = (node) => permissions =
node.getCollectionOfEnumValues<LinkedAccountOptionsCommonPermissions>(
(stringValue) => LinkedAccountOptionsCommonPermissions.values
.where((enumVal) => enumVal.value == stringValue)
.firstOrNull);
deserializerMap['prefetch'] = (node) => prefetch =
node.getCollectionOfEnumValues<LinkedAccountOptionsCommonPrefetch>(
(stringValue) => LinkedAccountOptionsCommonPrefetch.values
.where((enumVal) => enumVal.value == stringValue)
.firstOrNull);
deserializerMap['return_url'] = (node) => returnUrl = node.getStringValue();
return deserializerMap;
}