toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var id = this.id;
  var name = this.name;
  var type = this.type;
  var self = this.self;
  var location = this.location;
  var filter = this.filter;
  var subQuery = this.subQuery;
  var columnConfig = this.columnConfig;
  var estimation = this.estimation;
  var ranking = this.ranking;

  final json = <String, Object?>{};
  if (id != null) {
    json[r'id'] = id;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (type != null) {
    json[r'type'] = type;
  }
  if (self != null) {
    json[r'self'] = self;
  }
  if (location != null) {
    json[r'location'] = location.toJson();
  }
  if (filter != null) {
    json[r'filter'] = filter.toJson();
  }
  if (subQuery != null) {
    json[r'subQuery'] = subQuery.toJson();
  }
  if (columnConfig != null) {
    json[r'columnConfig'] = columnConfig.toJson();
  }
  if (estimation != null) {
    json[r'estimation'] = estimation.toJson();
  }
  if (ranking != null) {
    json[r'ranking'] = ranking.toJson();
  }
  return json;
}