toJson method

Map<String, dynamic> toJson()

Implementation

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