MapperFeature enum

On/off settings that change how the mapper sees classes, named after Jackson's MapperFeature.

Inheritance
Implemented types
Available extensions

Values

sortPropertiesAlphabetically → const MapperFeature

Properties are written sorted by JSON name, constructor parameters first; off writes them in declaration order (SORT_PROPERTIES_ALPHABETICALLY). On, like Jackson 3.

const MapperFeature(true)
defaultViewInclusion → const MapperFeature

Properties without @JsonView are written and read under every view; off leaves them out when a view is active (DEFAULT_VIEW_INCLUSION). Off, like Jackson 3.

const MapperFeature(false)

Properties

enabledByDefault → bool
Whether the feature is on when nobody configured it.
final
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<MapperFeature>
A constant List of the values in this enum, in order of their declaration.