deserialize method
- @Deprecated('Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.')
dynamic
deserialize(
- String json,
- String targetType, {
- bool growable = false,
})
Implementation
@Deprecated(
'Scheduled for removal in OpenAPI Generator 6.x. Use deserializeAsync() instead.')
dynamic deserialize(
String json,
String targetType, {
bool growable = false,
}) {
// Remove all spaces. Necessary for regular expressions as well.
targetType =
targetType.replaceAll(' ', ''); // ignore: parameter_assignments
/// Uses the custom deserializer from the API package that
/// wants to use the bluetooth module, to correctly deserialize
/// its responses from its models
return _customDeserializer?.call(json, targetType, growable: growable) ??
json;
}