JsonSerializableGenerator.withDefaultHelpers constructor
JsonSerializableGenerator.withDefaultHelpers(
- Iterable<
TypeHelper< typeHelpers, {TypeHelperContext> > - JsonSerializable? config,
Creates an instance of JsonSerializableGenerator.
typeHelpers
provides a set of TypeHelper that will be used along with
the built-in helpers:
BigIntHelper, DateTimeHelper, DurationHelper, JsonHelper, and
UriHelper.
Implementation
factory JsonSerializableGenerator.withDefaultHelpers(
Iterable<TypeHelper> typeHelpers, {
JsonSerializable? config,
}) =>
JsonSerializableGenerator(
config: config,
typeHelpers: List.unmodifiable(
typeHelpers.followedBy(Settings.defaultHelpers),
),
);