ReviewRequest class

Constructors

ReviewRequest({Map<String, String> glossary = const {}, String? source_, String? state, String? target, String? text, String? tier})
Returns a new ReviewRequest instance.

Properties

glossary ↔ Map<String, String>
Glossary is the terminology the entry was translated under. Its VERSION — the digest of the sorted terms — is part of the entry's identity, so editing a term yields a new entry rather than overwriting the old rendering.
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. Required; part of the entry's identity, so a different source is a different entry.
getter/setter pair
state ↔ String?
State is the entry's new position on the review ladder: suggested, approved or published. machine is engine-only and is refused here — a human may not demote a string back into the churn.
getter/setter pair
target ↔ String?
Target is the target language tag (BCP-47, e.g. "es" or "pt-BR"). Required; part of the entry's identity.
getter/setter pair
text ↔ String?
Text is the reviewed translation to store. A human write always wins over the stored value.
getter/setter pair
tier ↔ String?
Tier is the engine tier the entry belongs to, quality (the default) or bulk. Part of the entry's identity: the two tiers keep separate renderings.
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) → ReviewRequest?
Returns a new ReviewRequest instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<ReviewRequest>
mapFromJson(dynamic json) → Map<String, ReviewRequest>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<ReviewRequest>>

Constants

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