DefRow class

Constructors

DefRow({Object? definition, String? key, String? updatedAt, String? updatedBy, int? version})
Returns a new DefRow instance.

Properties

definition ↔ Object?
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
key ↔ String?
Key is the flag's primary key in the caller's (org, project) store, and the name evaluation looks it up by. On a write it is taken from the URL, never from the body: the stored document's own "key" is forced to match.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updatedAt ↔ String?
UpdatedAt is when the definition was last written, RFC 3339 UTC.
getter/setter pair
updatedBy ↔ String?
UpdatedBy is the email of the principal who last wrote it. Empty when the write came from an in-process composer (an experiment registering its own assignment flag) rather than from a signed-in person.
getter/setter pair
version ↔ int?
Version is 1 when the key was created and rises by one on every overwrite. It counts writes, not content changes: re-storing an identical document bumps it.
getter/setter pair

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

Constants

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