type_helper library
Classes
- BigIntHelper
- ClassConfig
-
Represents values from
JsonSerializable
when merged with local configuration. - ConvertData
-
Information used by ConvertHelper when handling
JsonKey
-annotated fields withtoJson
orfromJson
values set. - ConvertHelper
-
Handles
JsonKey
-annotated fields withtoJson
orfromJson
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/ortoJson
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
- Handles the types corresponding to simpleJsonTypeChecker, namely String, bool, num, int, double.
Constants
- simpleJsonTypeChecker → const TypeChecker
-
A
TypeChecker
for 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.