converterNameInCode method

String converterNameInCode(
  1. GenerationOptions options
)

A suitable typename to store an instance of the type converter used here.

Implementation

String converterNameInCode(GenerationOptions options) {
  final sqlDartType = dartTypeNames[sqlType];
  final className =
      alsoAppliesToJsonConversion ? 'JsonTypeConverter' : 'TypeConverter';

  return '$className<${mappedType.codeString(options)}, $sqlDartType>';
}