deserialize method
Data?
deserialize(
- dynamic x
Implementation
Data? deserialize(dynamic x) {
if (deserializer != null) return deserializer!(x);
if (x is Data?) return x;
throw FormatException(
'The server returned a ${x.runtimeType}, not a $Data. '
'Pass a deserializer to service() to turn the JSON into a $Data.',
);
}