beforeDeserialize method
Implementation
@override
Object? beforeDeserialize(Object? object, FullType specifiedType) {
if (object is Map && specifiedType.root != JsonObject) {
if (specifiedType.isUnspecified) {
return _toListUsingDiscriminator(object);
} else {
return _toList(object, _needsEncodedKeys(specifiedType),
keepNulls: specifiedType.root == BuiltMap);
}
} else {
return object;
}
}