MessageTemplate class final
A versioned SMS or email template and its declared variables.
Channel-specific content is exposed through sms or email. Publication fields distinguish the current draft from the version available for use.
Constructors
-
MessageTemplate({required String id, required String name, String? about, required Channel channel, required String purpose, required String locale, required Status status, required int version, int? publishedVersion, required int draftVersion, required bool hasUnpublishedChanges, List<
Variable> ? variables, SMSContent? sms, EmailContent? email, List<String> ? attachments, required DateTime createdAt, required DateTime updatedAt, DateTime? publishedAt, DateTime? archivedAt}) -
const
-
MessageTemplate.fromJson(Map<
String, Object?> json) -
factory
Properties
- about → String?
-
final
- archivedAt → DateTime?
-
final
-
attachments
→ List<
String> ? -
final
- channel → Channel
-
final
- createdAt → DateTime
-
final
- draftVersion → int
-
final
- email → EmailContent?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasUnpublishedChanges → bool
-
final
- id → String
-
final
- locale → String
-
final
- name → String
-
final
- publishedAt → DateTime?
-
final
- publishedVersion → int?
-
final
- purpose → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sms → SMSContent?
-
final
- status → Status
-
final
- updatedAt → DateTime
-
final
-
variables
→ List<
Variable> ? -
final
- version → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited