Json class
decorator used to influence json serialization for fields
Constructors
- Json({String name = "", Type? converter, bool ignore = false, bool includeNull = true, bool required = true, Object? defaultValue})
-
Create a Json
name
name overrideignore
if true, this field will not be serializedincludeNull
if true, nulls will be serialized.required
if true, the JSON is expected to have a valuedefaultValue
default in case of a not supplied json valueconst
Properties
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