toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final attributeName = this.attributeName;
  final orderBy = this.orderBy;
  return {
    if (attributeName != null) 'attributeName': attributeName,
    if (orderBy != null) 'orderBy': orderBy.toValue(),
  };
}