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
namename overrideignoreif true, this field will not be serializedincludeNullif true, nulls will be serialized.requiredif true, the JSON is expected to have a valuedefaultValuedefault 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