type_helper library
Classes
- BigIntHelper
- ClassConfig
-
Represents values from
JsonSerializablewhen merged with local configuration. - ConvertData
-
Information used by ConvertHelper when handling
JsonKey-annotated fields withtoJsonorfromJsonvalues set. - ConvertHelper
-
Handles
JsonKey-annotated fields withtoJsonorfromJsonvalues set. - DateTimeHelper
- DurationHelper
- EnumHelper
- IterableHelper
- JsonConverterHelper
-
A TypeHelper that supports classes annotated with implementations of
JsonConverter. - JsonHelper
-
Supports types that have
fromJsonconstructors and/ortoJsonfunctions. - KeyConfig
-
Represents values from
JsonKeywhen 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
JsonSerializableGeneratorsettings. - TypeHelperContextWithConvert
- UriHelper
- ValueHelper
- Handles the types corresponding to simpleJsonTypeChecker, namely String, bool, num, int, double.
Constants
- simpleJsonTypeChecker → const TypeChecker
-
A
TypeCheckerfor String, bool and num.
Properties
- simpleExpression → RegExp
-
final
Functions
-
hasConverterNullEncode(
DartType targetType, TypeHelperContextWithConfig ctx) → bool? -
If there is no converter for the params, return
null.
Exceptions / Errors
- UnsupportedTypeError
- Error thrown when code generation fails due to type being unsupported for reason.