toJson method
Implementation
@override
Map<String, Object?> toJson() => {
if (name != null) "name": encodeValue(name),
if (about != null) "about": encodeValue(about),
if (channel != null) "channel": encodeValue(channel),
if (purpose != null) "purpose": encodeValue(purpose),
if (locale != null) "locale": encodeValue(locale),
if (variables != null) "variables": encodeValue(variables),
if (sms != null) "sms": encodeValue(sms),
if (email != null) "email": encodeValue(email),
if (attachments != null) "attachments": encodeValue(attachments),
"id": encodeValue(id),
};