JsonPropertyAccess enum
The directions a property takes part in, for JsonProperty.access
(Jackson's JsonProperty.Access).
Values
- auto → const JsonPropertyAccess
-
Both directions, as far as the property can be read and set (
AUTO). The default. - readOnly → const JsonPropertyAccess
-
Only written to JSON; a value for it in the JSON is ignored. Use it for values the server computes, such as an id or a total (
READ_ONLY: the property is only read from the object). - writeOnly → const JsonPropertyAccess
-
Only read from JSON, never written. Use it for secrets a client sends, such as a password (
WRITE_ONLY: the property is only set on the object). - readWrite → const JsonPropertyAccess
-
Both directions (
READ_WRITE); the same as auto, as Dart has no visibility levels between public and private.
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<
JsonPropertyAccess> - A constant List of the values in this enum, in order of their declaration.