JsonSerializableGenerator constructor

JsonSerializableGenerator({
  1. JsonSerializable? config,
  2. List<TypeHelper<TypeHelperContext>>? typeHelpers,
})

Creates an instance of JsonSerializableGenerator.

If typeHelpers is not provided, the built-in helpers are used: BigIntHelper, DateTimeHelper, DurationHelper, JsonHelper, and UriHelper.

Implementation

factory JsonSerializableGenerator({
  JsonSerializable? config,
  List<TypeHelper>? typeHelpers,
}) =>
    JsonSerializableGenerator.fromSettings(Settings(
      config: config,
      typeHelpers: typeHelpers,
    ));