JsonConstructor class

Indicates the constructor to be used to instantiate an entity from JSON/Map.

Inheritance

Constructors

JsonConstructor({bool mandatory = false})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
mandatory bool
If true indicates that this is the only constructor to be used for JSON. If multiple constructos are declared as mandatory, only the 1st to work with the passed parameters will be used.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited