MemoryEntry class

Constructors

MemoryEntry({String? actor, String? glossaryVersion, String? source_, String? state, String? target, String? text, String? tier, int? updatedAt})
Returns a new MemoryEntry instance.

Properties

actor ↔ String?
Actor is the validated user id that last wrote this entry by hand. Empty on an entry an engine produced, and on one written before attribution existed.
getter/setter pair
glossaryVersion ↔ String?
Glossary is the glossary VERSION the entry was translated under — the digest version() derives from the terms, so changing a term changes the key and the stale rendering can never be served.
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
source_ ↔ String?
Source is the ORIGINAL string this entry translates. Part of the identity.
getter/setter pair
state ↔ String?
State is the entry's position on the review ladder: machine, suggested, approved or published.
getter/setter pair
target ↔ String?
Target is the target language tag (BCP-47, e.g. "es" or "pt-BR"). Part of the identity.
getter/setter pair
text ↔ String?
Text is the stored translation. A memory hit returns it verbatim, which is the idempotence contract.
getter/setter pair
tier ↔ String?
Tier is the engine tier the entry belongs to, quality or bulk. Part of the identity: the two tiers keep separate renderings of the same source.
getter/setter pair
updatedAt ↔ int?
UpdatedAt is the unix second the entry last changed.
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) → MemoryEntry?
Returns a new MemoryEntry instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<MemoryEntry>
mapFromJson(dynamic json) → Map<String, MemoryEntry>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<MemoryEntry>>

Constants

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