TemplateView class

Constructors

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

Properties

category ↔ String?
Category is the corporate need the template serves: formation, equity, ops or sales. Formation and equity are the securities-class categories, which is what forces counselReview.
getter/setter pair
counselReview ↔ bool?
CounselReview marks a template whose rendered documents open with the counsel notice. True for every formation and equity template whatever an override sends: the engine prepends the notice and no caller can suppress it.
getter/setter pair
fields ↔ List<Field>
Fields declares the merge fields the body consumes — every key a generation must supply, each with its human label. All are REQUIRED: a missing one is refused rather than rendered as a blank into a contract.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the template's stable id and the path segment that fetches its body — "nda", "msa", "safe". An override keeps the built-in's id.
getter/setter pair
origin ↔ String?
Origin is "builtin" for a template the platform ships or "org" for one this org saved. It separates the catalog every tenant sees from this tenant's own.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title ↔ String?
Title is the display name, e.g. "Mutual Non-Disclosure Agreement". A generated document inherits it.
getter/setter pair
version ↔ int?
Version is which version of this template the caller's org resolves to. A built-in is version 1; the org's first override is 2 and each save increments, so an override version never collides with the built-in's.
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) → TemplateView?
Returns a new TemplateView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<TemplateView>
mapFromJson(dynamic json) → Map<String, TemplateView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<TemplateView>>

Constants

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