getConverter method

JsonConverter getConverter(
  1. TypeInfo type
)

Get the converter for a specific type.

Returns the appropriate JsonConverter for the given type based on the registered converters in converters.

Implementation

JsonConverter getConverter(TypeInfo type) {
  return converters.firstWhere((x) => x.canConvert(type));
}