menu
smithy package
documentation
ast.dart
EnumTrait class
EnumTrait class
dark_mode
light_mode
EnumTrait
class
Implemented types
Trait
<
EnumTrait
>
Annotations
@
ShapeIdConverter
()
@JsonSerializable()
Constructors
EnumTrait.new
(
List
<
EnumDefinition
>
definitions
)
const
EnumTrait.fromJson
(
Object
?
json
)
factory
Properties
definitions
→
List
<
EnumDefinition
>
final
hashCode
→
int
The hash code for this object.
no setter
inherited
isSynthetic
→
bool
Checks if this trait is persisted with the shape, or if it is a synthetic, or transient trait, only meant to temporarily aid in some kind of in-memory model transformation.
no setter
override
props
→
List
<
Object
?
>
The type's equatable properties.
no setter
override
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
shapeId
→
ShapeId
Returns the fully-qualified shape ID of the trait.
no setter
override
value
→
EnumTrait
The value of the trait.
no setter
override
Methods
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson
(
)
→
Map
<
String
,
Object
?
>
Serializes
this
as a JSON object.
override
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
Constants
id
→ const
ShapeId
smithy package
documentation
ast
EnumTrait class
smithy_ast library