getInstance static method

RawRepresentable? getInstance(
  1. Type type,
  2. dynamic rawValue
)

Implementation

static RawRepresentable? getInstance(Type type, rawValue) {
  final constructor = Mappable.factories[type];
  if (constructor == null) return null;
  return constructor(rawValue);
}