toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.object != null) {
json[r'object'] = this.object;
} else {
json[r'object'] = null;
}
if (this.instanceId != null) {
json[r'instance_id'] = this.instanceId;
} else {
json[r'instance_id'] = null;
}
if (this.resourceType != null) {
json[r'resource_type'] = this.resourceType;
} else {
json[r'resource_type'] = null;
}
if (this.templateType != null) {
json[r'template_type'] = this.templateType;
} else {
json[r'template_type'] = null;
}
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
if (this.slug != null) {
json[r'slug'] = this.slug;
} else {
json[r'slug'] = null;
}
if (this.position != null) {
json[r'position'] = this.position;
} else {
json[r'position'] = null;
}
if (this.canRevert != null) {
json[r'can_revert'] = this.canRevert;
} else {
json[r'can_revert'] = null;
}
if (this.canDelete != null) {
json[r'can_delete'] = this.canDelete;
} else {
json[r'can_delete'] = null;
}
if (this.canToggle != null) {
json[r'can_toggle'] = this.canToggle;
} else {
json[r'can_toggle'] = null;
}
if (this.subject != null) {
json[r'subject'] = this.subject;
} else {
json[r'subject'] = null;
}
if (this.markup != null) {
json[r'markup'] = this.markup;
} else {
json[r'markup'] = null;
}
if (this.body != null) {
json[r'body'] = this.body;
} else {
json[r'body'] = null;
}
json[r'available_variables'] = this.availableVariables;
json[r'required_variables'] = this.requiredVariables;
if (this.fromEmailName != null) {
json[r'from_email_name'] = this.fromEmailName;
} else {
json[r'from_email_name'] = null;
}
if (this.replyToEmailName != null) {
json[r'reply_to_email_name'] = this.replyToEmailName;
} else {
json[r'reply_to_email_name'] = null;
}
if (this.deliveredByClerk != null) {
json[r'delivered_by_clerk'] = this.deliveredByClerk;
} else {
json[r'delivered_by_clerk'] = null;
}
if (this.enabled != null) {
json[r'enabled'] = this.enabled;
} else {
json[r'enabled'] = null;
}
if (this.updatedAt != null) {
json[r'updated_at'] = this.updatedAt;
} else {
json[r'updated_at'] = null;
}
if (this.createdAt != null) {
json[r'created_at'] = this.createdAt;
} else {
json[r'created_at'] = null;
}
return json;
}