MetricRow class

Constructors

MetricRow({String? createdAt, int? currentVersion, String? lastUpdatedAt, String? name, String? type, int? versions})
Returns a new MetricRow instance.

Properties

createdAt ↔ String?
CreatedAt is when version 1 was written, RFC 3339 UTC.
getter/setter pair
currentVersion ↔ int?
CurrentVer is the version number served as current. It always equals versions: numbering is dense from 1, and deleting a prompt takes its whole history with it rather than leaving a gap.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
lastUpdatedAt ↔ String?
LastUpdatedAt is when the newest version was appended, RFC 3339 UTC — the age of the template you would get today.
getter/setter pair
name ↔ String?
Name is the prompt this row is about — its org-unique handle.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ String?
Type is the current version's kind.
getter/setter pair
versions ↔ int?
Versions is how many revisions the prompt has, COUNTED in the store and uncapped — so it can exceed the 100 entries a list row or a detail response carries. Note the type: here versions is a number, while on a list row it is the list of version numbers.
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) → MetricRow?
Returns a new MetricRow instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<MetricRow>
mapFromJson(dynamic json) → Map<String, MetricRow>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<MetricRow>>

Constants

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