JsonInclusion enum
Which property values are written, for JsonInclude and the mapper's
inclusion (Jackson's JsonInclude.Include).
Values
- always → const JsonInclusion
-
Every value,
nullincluded (ALWAYS). The mapper's default. - nonNull → const JsonInclusion
-
Every value except
null(NON_NULL). - nonAbsent → const JsonInclusion
-
Every value except
null(NON_ABSENT); the same as nonNull, as Dart has noOptional. - nonEmpty → const JsonInclusion
-
Every value except
nulland an empty string, list, set or map (NON_EMPTY). - nonDefault → const JsonInclusion
-
Every value that differs from its default (
NON_DEFAULT). On a class (@JsonInclude(JsonInclusion.nonDefault)on the class), the default is the value in an instance created with the no-argument constructor. Elsewhere, or when the class has no such constructor, it is the default of the type:null,0,falseand what nonEmpty leaves out.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Constants
-
values
→ const List<
JsonInclusion> - A constant List of the values in this enum, in order of their declaration.