toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var orderBy = this.orderBy;
  var where = this.where;

  final json = <String, Object?>{};
  if (orderBy != null) {
    json[r'orderBy'] = orderBy.toJson();
  }
  if (where != null) {
    json[r'where'] = where.toJson();
  }
  return json;
}