DidTemplateRef class
Reference to a DID template already registered at the maintainer. Inline template
definitions are deliberately not supported — templates must be uploaded out-of-band
first (operator-authored or built-in) so the maintainer can validate vars against
the template's declared schema.
Constructors
-
DidTemplateRef({required String name, Map<
String, dynamic> ? vars}) -
const
-
DidTemplateRef.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Template name as registered at the maintainer (built-in or operator-uploaded).
Examples of built-ins shipped with VTA deployments:
didcomm-mediator,vta-admin,did-hosting-control,did-hosting-daemon,did-hosting-server.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
vars
→ Map<
String, dynamic> ? -
Variable bindings the maintainer feeds to the template renderer. MUST satisfy the
template's
requiredVars; values foroptionalVarsMAY be supplied. Unknown vars are rejected withprovision/integration:templateVarsInvalid.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