toJson method
Implementation
Map<String, dynamic> toJson() {
final info = this.info;
final description = this.description;
final disableTemplateValidation = this.disableTemplateValidation;
final name = this.name;
final type = this.type;
return {
'Info': info,
if (description != null) 'Description': description,
if (disableTemplateValidation != null)
'DisableTemplateValidation': disableTemplateValidation,
if (name != null) 'Name': name,
if (type != null) 'Type': type.toValue(),
};
}