Payload class

An administrator creates a community group: the community's VTA mints the group's own DID and, where it issues credentials, the community authorises it to issue membership credentials; the group is recorded only afterwards. The outer document members are owned by the framework — SPEC §6.3.

Constructors

Payload({required GroupName name, GroupDescription? description, required GroupKind kind, DynamicRule? rule, JoinPolicy? joinPolicy, required GroupAudience visibility, required GroupAudience showMembers, bool? issuesCredentials, required String reason, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

description → String?
final
ext → Ext?
final
hashCode → int
The hash code for this object.
no setterinherited
issuesCredentials → bool?
Whether the group's DID issues its members a membership credential. Absent: true.
final
joinPolicy → JoinPolicy?
Static groups only. Absent: closed.
final
kind → GroupKind
final
name → String
final
reason → String
Why, recorded with the change and shown to anyone who must approve it.
final
rule → DynamicRule?
REQUIRED for a dynamic group; refused on a static one.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showMembers → GroupAudience
final
visibility → GroupAudience
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to a JSON-encodable map, omitting absent members.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited