StructureConformity enum

Inheritance

Constructors

StructureConformity()
const

Values

bean → const StructureConformity

Class which posses following attributes are parsed and understood as bean classes:

  • The class is annotated with @serializable
  • The primary constructor has no arguments
  • The class has at least one property or field with both a getter and a setter

If a structure is generated as a bean, the activation function will, instead of using constructors like for basic and dataclass, be using the field setters to create a new instance. All field with the late modifier will be treated as required fields and all nullable fields as optional respectively.

A bean factory, which is named ClassNameFactory, will be generated together with the structure definition. This factory can be used to create instances of the bean using the static 'create' method with named arguments. No other classes are generated for bean-type structures.

basic → const StructureConformity

Classes which posses following attributes are parsed and understood as basic classes:

  • The class is annotated with @serializable
  • The class has a primary constructor or secondary constructor named 'dog' that has only field references

If a structure is generated as a basic structure, a builder and an extension for creating the builder will be created together with the structure definition. This build can be used to create a builder

dataclass → const StructureConformity

Classes which posses following attributes are parsed and understood as dataclass classes:

  • The class is annotated with @serializable
  • The class uses the mixin Dataclass&ltClassName&gt
  • The class has a primary constructor or secondary constructor named 'dog' that has only field references
  • All fields used with the previously mentioned constructor must be effectively final and should therefore also have the final modifier

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<StructureConformity>
A constant List of the values in this enum, in order of their declaration.