TrustItemView class

Constructors

TrustItemView({String? attester, String? body, int? createdAt, String? document, String? framework, String? id, String? kind, String? name, bool? retired, String? summary, String? tier, int? updatedAt})
Returns a new TrustItemView instance.

Properties

attester ↔ String?
Attester is who vouched for it: self or auditor.
getter/setter pair
body ↔ String?
Body is the item's content for the kinds that are text rather than a file.
getter/setter pair
createdAt ↔ int?
CreatedAt is when it was published, in unix milliseconds.
getter/setter pair
document ↔ String?
Document is the data-room document holding its bytes, empty when it has none.
getter/setter pair
framework ↔ String?
Framework is the standard it speaks to, when it speaks to one.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID addresses the item.
getter/setter pair
kind ↔ String?
Kind is one of report, letter, policy, questionnaire, subprocessor, article or update — the closed set the public centre knows how to draw.
getter/setter pair
name ↔ String?
Name is the label the centre lists it under.
getter/setter pair
retired ↔ bool?
Retired is whether it has been withdrawn. A retired item is absent from the public centre and cannot be granted; it is kept because a grant already made over it is part of the record.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
summary ↔ String?
Summary is a line about it.
getter/setter pair
tier ↔ String?
Tier is public or gated. Gated is the default and an auditor-signed item can only ever be gated.
getter/setter pair
updatedAt ↔ int?
UpdatedAt is when it last changed, in unix milliseconds.
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) → TrustItemView?
Returns a new TrustItemView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TrustItemView>
mapFromJson(dynamic json) → Map<String, TrustItemView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TrustItemView>>

Constants

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