Mappable constructor

Mappable(
  1. Type type
)

Implementation

factory Mappable(Type type) {
  var constructor = Mappable.factories[type];
  assert(constructor != null, '${type.toString()} is not defined in Reflection.factories');
  return constructor!();
}