import 'package:dart_mappable/dart_mappable.dart';
part 'Test.mapper.dart';
@MappableClass()
class Response<T> with ResponseMappable<T> {
const Response();
static const fromMap = ResponseMapper.fromMap;
}
@MappableClass()
class Model with ModelMappable {
const Model();
}
// exception: MapperException: Failed to decode (Response<Model>): type 'Response<UnresolvedType>' is not a subtype of type 'Response<Model>' in type cast
Response<Model> modelResponse = Response.fromMap({});
how to cast Response<Model> from a map using dart_mappable?
the following code throws an exception:
how to cast
Response<Model>
from a map usingdart_mappable
?