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
- DateTimeHelper
- DurationHelper
- EnumHelper
- IterableHelper
- JsonConverterHelper
-
A TypeHelper that supports classes annotated with implementations of
JsonConverter
. - JsonHelper
- 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.
Properties
- simpleExpression → RegExp
-
final
Functions
-
typeArgumentsOf(
DartType type, TypeChecker checker) → List< DartType> -
If
type
is the Type or implements the Type represented bychecker
, returns the generic arguments to thechecker
Type if there are any.
Exceptions / Errors
- UnsupportedTypeError
- Error thrown when code generation fails due to type being unsupported for reason.