import '../Data/RepresentationType.dart'; // class DumClass { // Type type = T; // } // Type getNullableType() => DumClass().type; // Type getTypeOf() => DumClass().type; class FactoryEntry { Type get type => T; late Type nullableType; final Function instanceCreator; final Function arrayCreator = () => []; final RepresentationType representationType; final Function mapCreator = () => Map(); bool isMapKeySubType(Map map) { return map is Map; } bool isMapValueSubType(Map map) { return map is Map; } bool isListSubType(List list) { return list is List; } FactoryEntry(this.instanceCreator, this.representationType) { nullableType = getNullableType(); } }