TrustSettings class

Constructors

TrustSettings({String? name, String? nda, bool? publish, String? slug})
Returns a new TrustSettings instance.

Properties

hashCode → int
The hash code for this object.
no setteroverride
name ↔ String?
Name is the centre's display name. Required to publish.
getter/setter pair
nda ↔ String?
Nda is the text a party must accept before asking for a document. Optional; empty asks for no acceptance. The text in force is copied onto each request as it is accepted, so editing it never changes what anyone already agreed to.
getter/setter pair
publish ↔ bool?
Publish makes the centre answer at its public address. False withdraws it: the address stops answering while every item, grant and record stays exactly as it was, so withdrawing is reversible and loses nothing.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
slug ↔ String?
Slug is the public address to answer at — a lowercase label of letters, digits and hyphens. Required to publish, unique across the deployment, and one org holds one: publishing under a new address MOVES the centre rather than leaving the old one answering.
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) → TrustSettings?
Returns a new TrustSettings instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TrustSettings>
mapFromJson(dynamic json) → Map<String, TrustSettings>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TrustSettings>>

Constants

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