dart_json_mapper library

Classes

BaseCustomConverter
Base class for custom type converter having access to parameters provided by the JsonProperty meta
BigIntConverter
BigInt converter
ClassInfo
Provides unified access to class information based on ClassMirror
ConstEnumConverterNumeric
Const wrapper for EnumConverterNumeric
DateConverter
Default converter for DateTime type
DefaultConverter
Default converter for all types
DefaultIterableConverter
Default Iterable converter
DefaultTypeInfoDecorator
DeserializationContext
DeserializationOptions
DurationConverter
DurationConverter converter for Duration type
Enum
Virtual class Used as a generic reference to all Enum based types enum ABC {A, B, C}, etc.
EnumConverter
Long converter for enum type
EnumConverterNumeric
Numeric index based converter for enum type
EnumConverterShort
Default converter for enum type
IAdapter
Abstract contract class for adapters implementations
ICompositeConverter
Abstract class for composite converters relying on other converters
ICustomConverter<T>
Abstract class for custom converters implementations
ICustomEnumConverter
Abstract class for custom Enum converters implementations
ICustomIterableConverter
Abstract class for custom iterable converters implementations
ICustomMapConverter
Abstract class for custom map converters implementations
IRecursiveConverter
Abstract class for custom recursive converters implementations
ITypeInfoDecorator
Abstract class for custom typeInfo decorator implementations
Json
Json is used as metadata, to annotate Dart class as top level Json object
JsonConstructor
JsonConstructor is used as metadata, to annotate specific Dart class constructor being used for deserialization
JsonMap
Provides logic for traversing Json object tree
JsonMapper
Singleton class providing static methods for Dart objects conversion from / to JSON string
JsonMapperAdapter
Base class for JsonMapper adapters
JsonProperty
JsonProperty is used as metadata, for annotation of individual class fields to fine tune Json property level.
JsonSerializable
JsonSerializable is used as metadata, marking classes as serialization / deserialization capable targets
MapConverter
Map<K, V> converter
NumberConverter
Default converter for num type
ProcessedObjectDescriptor
RegExpConverter
RegExp converter
SerializationContext
SerializationOptions
SymbolConverter
Default converter for Symbol type
TypeInfo
Provides enhanced type information based on Type.toString() value
Uint8ListConverter
Uint8List converter to base64 and back
UriConverter
Uri converter

Constants

bigIntConverter → const BigIntConverter
dateConverter → const DateConverter
defaultConverter → const DefaultConverter
defaultDeserializationOptions → const DeserializationOptions
defaultSerializationOptions → const SerializationOptions
SerializationOptions(indent: ' ')
durationConverter → const DurationConverter
enumConverterNumeric → const ConstEnumConverterNumeric
jsonConstructor → const JsonConstructor
jsonConstructor is used as a shorthand metadata w/o "()"
jsonProperty → const JsonProperty
jsonProperty is used as a shorthand metadata w/o "()"
jsonSerializable → const JsonSerializable
jsonSerializable is used as shorthand metadata, marking classes targeted for serialization / deserialization, w/o "()"
numberConverter → const NumberConverter
regExpConverter → const RegExpConverter
symbolConverter → const SymbolConverter
uint8ListConverter → const Uint8ListConverter
uriConverter → const UriConverter

Properties

dartCollectionAdapter JsonMapperAdapter
final
dartCoreAdapter JsonMapperAdapter
final
defaultEnumConverter EnumConverterShort
final
defaultIterableConverter DefaultIterableConverter
final
defaultTypeInfoDecorator DefaultTypeInfoDecorator
final
enumConverter EnumConverter
final
enumConverterShort EnumConverterShort
final
mapConverter MapConverter
final

Functions

capitalize(String input) String
toWords(String input) String
transformFieldName(String input, CaseStyle caseStyle) String
typeOf<T>() Type

Enums

CaseStyle
ConversionDirection

Typedefs

DeserializeObjectFunction(Object object, Type type) → dynamic
GetConvertedValueFunction(ICustomConverter converter, dynamic value, [SerializationContext serializationContext, DeserializationContext deserializationContext]) → dynamic
GetConverterFunction(JsonProperty jsonProperty, Type declarationType) ICustomConverter
SerializeObjectFunction(Object object) → dynamic
ValueDecoratorFunction(dynamic value) → dynamic

Exceptions / Errors

CircularReferenceError
JsonMapperError
MissingAnnotationOnTypeError
MissingEnumValuesError
MissingTypeForDeserializationError