toJson method
Implementation
Map<String, dynamic> toJson() {
return <String, dynamic>{
'templateId': templateId,
'accountId': accountId,
'referenceId': referenceId,
'environment':
environment != null ? environment.toString().split('.').last : null,
'fields': fields?.toJson(),
'note': note,
'theme': iOSTheme?.toJson(),
};
}