XmlValue class

An annotation used to specify how an enum value is serialized.

@XmlEnum()
enum Language {
  @XmlValue('Mandarin')
  mandarin,
  @XmlValue('Spanish')
  spanish,
  @XmlValue('English')
  english,
  @XmlValue('Hindi')
  hindi,
  @XmlValue('Bengali')
  bengali,
}

Constructors

XmlValue(String value)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The value to use when serializing and deserializing.
final

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