JsonSerializableGenerator constructor
JsonSerializableGenerator({
- JsonSerializable? config,
- List<
TypeHelper< ? typeHelpers,TypeHelperContext> >
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,
));