type_helper library Null safety

Classes

BigIntHelper
ClassConfig
Represents values from JsonSerializable when merged with local configuration. [...]
ConvertData
Information used by ConvertHelper when handling JsonKey-annotated fields with toJson or fromJson values set.
ConvertHelper
Handles JsonKey-annotated fields with toJson or fromJson values set.
DateTimeHelper
DurationHelper
EnumHelper
IterableHelper
JsonConverterHelper
A TypeHelper that supports classes annotated with implementations of JsonConverter.
JsonHelper
Supports types that have fromJson constructors and/or toJson functions.
KeyConfig
Represents values from JsonKey when merged with local configuration.
MapHelper
TypeHelper<T extends TypeHelperContext>
TypeHelperContext
Context information provided in calls to TypeHelper.serialize and TypeHelper.deserialize.
TypeHelperContextWithConfig
Extended context information with includes configuration values corresponding to JsonSerializableGenerator settings.
TypeHelperContextWithConvert
UriHelper
ValueHelper

Constants

simpleJsonTypeChecker → const TypeChecker
A TypeChecker for String, bool and num.
TypeChecker.any([coreStringTypeChecker, TypeChecker.fromUrl('dart:core#bool'), TypeChecker.fromUrl('dart:core#num')])

Properties

simpleExpression RegExp
final

Exceptions / Errors

UnsupportedTypeError
Error thrown when code generation fails due to type being unsupported for reason.