dart_json_mapper library

Classes

AnnotatedEnumConverter
Annotated Enum instance converter
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
DateConverter
Default converter for DateTime type
DefaultConverter
Default converter for all types
DefaultIterableConverter
Default Iterable converter
DefaultTypeInfoDecorator
DeserializationContext
DeserializationOptions
Enum
Virtual class Used as a generic reference to all Enum based types enum ABC {A, B, C}, etc.
EnumConverter
Default converter for enum type
EnumConverterNumeric
Numeric index based converter for enum type
IAdapter
Abstract contract class for adapters implementations
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
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

Constants

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

Properties

annotatedEnumConverter AnnotatedEnumConverter
final
defaultIterableConverter DefaultIterableConverter
final
defaultJsonMapperAdapter JsonMapperAdapter
final
defaultTypeInfoDecorator DefaultTypeInfoDecorator
final
mapConverter MapConverter
final

Functions

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

Enums

CaseStyle

Typedefs

DeserializeObjectFunction(Object object, Type type) → dynamic
SerializeObjectFunction(Object object) → dynamic
ValueDecoratorFunction(dynamic value) → dynamic

Exceptions / Errors

CircularReferenceError
InvalidEnumValueError
JsonMapperError
MissingAnnotationOnTypeError
MissingEnumValuesError
MissingTypeForDeserializationError