Field class

Constructors

Field({String? key, String? label})
Returns a new Field instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
key ↔ String?
Key is the identifier the body substitutes ({{.key}}) and the key a generation's data map must carry. snake_case by convention across the built-ins — effective_date, company_name, governing_law. An override whose body references a key no Field declares is refused on save.
getter/setter pair
label ↔ String?
Label is the human prompt for whoever fills the value in — "Governing law (state)". It never reaches the rendered document; only Key does.
getter/setter pair
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
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Field?
Returns a new Field instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Field>
mapFromJson(dynamic json) → Map<String, Field>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Field>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.