toJson method

Map<String, dynamic> toJson()

Implementation

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