toJson method
Implementation
Map<String, dynamic> toJson() {
final attribute = this.attribute;
final sortOrder = this.sortOrder;
return {
'Attribute': attribute.toValue(),
if (sortOrder != null) 'SortOrder': sortOrder.toValue(),
};
}