TemplateOverride class

Constructors

TemplateOverride({String? body, String? category, bool? counselReview, List<Field> fields = const [], String? id, String? title})
Returns a new TemplateOverride instance.

Properties

body ↔ String?
Body is the text/template source. Required. Every {{.key}} it references must be declared in Fields, or the save is refused rather than rendering a blank into a contract later.
getter/setter pair
category ↔ String?
Category groups the template: formation, equity, ops or sales. Optional when overriding a built-in, which supplies its own.
getter/setter pair
counselReview ↔ bool?
CounselReview marks a template whose documents must carry the counsel notice. It can be raised but never lowered: a formation or equity template is always counsel-review, and an override of a counsel-review built-in stays one.
getter/setter pair
fields ↔ List<Field>
Fields declares the merge fields the body consumes. Every declared field is REQUIRED at generation — the engine fails closed on a missing one.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the template to override, from the path. Overriding a built-in id inherits that built-in's category, title and counsel-review posture.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title ↔ String?
Title is the template's display name. Required unless a built-in supplies it.
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) → TemplateOverride?
Returns a new TemplateOverride instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TemplateOverride>
mapFromJson(dynamic json) → Map<String, TemplateOverride>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TemplateOverride>>

Constants

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