Json class

Json is used as metadata, to annotate Dart class as top level Json object

Constructors

Json({int allowCircularReferences, Map<Type, ValueDecoratorFunction> valueDecorators(), dynamic scheme, List enumValues, String typeNameProperty, CaseStyle caseStyle, bool ignoreNullMembers, String name})
const

Properties

allowCircularReferences int
Allow circular object references during serialization for annotated class. Presume You know what you are doing
final
caseStyle CaseStyle
The most popular ways to combine words into a single string Based on assumption: That all Dart class fields initially given as CaseStyle.Camel
final
enumValues List
Provides a way to specify enum values, via Dart built in capability for all Enum instances. Enum.values
final
hashCode int
The hash code for this object. [...]
read-only, inherited
ignoreNullMembers bool
Null class members will be excluded from serialization process
final
name String
Defines RFC 6901 JSON pointer Denotes the json Object root name/path to be used for mapping Example: name: 'foo' name: 'bar' name: 'foo/bar/baz' name: '#/foo/0/baz'
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scheme → dynamic
Scheme marker to associate this meta information with particular mapping scheme
final
typeNameProperty String
Declares necessity for annotated class and all its subclasses to dump their own type name to the custom named json property.
final
valueDecorators Map<Type, ValueDecoratorFunction> Function()
Static function to return a Map of Inline value decorators [...]
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited