deserialize method
T
deserialize(
- Serializers serializers,
- Object serialized, {
- FullType specifiedType = FullType.unspecified,
Implementation
T deserialize(Serializers serializers, Object serialized,
{FullType specifiedType = FullType.unspecified}) {
final Serializer<T> serializer = this.serializer;
if (serializer is PrimitiveSerializer<T>) {
return serializer.deserialize(serializers, serialized, specifiedType: specifiedType);
} else if (serializer is StructuredSerializer<T>) {
return serializer.deserialize(serializers, serialized as Iterable<dynamic>,
specifiedType: specifiedType);
} else {
return serialized as T;
}
}