VersionView class

Constructors

VersionView({String? createdAt, String? type, int? version})
Returns a new VersionView instance.

Properties

createdAt ↔ String?
CreatedAt is when this revision was appended, RFC 3339 UTC.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ String?
Type is the kind this revision was written with, which may differ from the current one.
getter/setter pair
version ↔ int?
Version is this revision's number, 1 for the first. Numbers are dense and never reused: deleting the prompt drops the whole history with 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) → VersionView?
Returns a new VersionView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<VersionView>
mapFromJson(dynamic json) → Map<String, VersionView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<VersionView>>

Constants

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