to static method

dynamic to(
  1. String type,
  2. dynamic value
)

Implementation

static dynamic to(String type, value) {
  return _predefinedConverters[type]?.to(value);
}