type_helper library

Classes

BigIntHelper
ConvertData
Information used by ConvertHelper when handling JsonKey-annotated fields with toJson or fromJson values set.
ConvertHelper
DateTimeHelper
EnumHelper
IterableHelper
JsonConverterHelper
A TypeHelper that supports classes annotated with implementations of JsonConverter.
JsonHelper
MapHelper
TypeHelper<T extends TypeHelperContext>
TypeHelperContext
Context information provided in calls to TypeHelper.serialize and TypeHelper.deserialize.
TypeHelperContextWithConvert
UriHelper
ValueHelper

Constants

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

Properties

simpleExpression → RegExp
final

Functions

typeArgumentsOf(DartType type, TypeChecker checker) → List<DartType>
If type is the Type or implements the Type represented by checker, returns the generic arguments to the checker Type if there are any. [...]

Exceptions / Errors

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