toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var maxResults = this.maxResults;
  var query = this.query;
  var startAt = this.startAt;
  var validation = this.validation;

  final json = <String, Object?>{};
  if (maxResults != null) {
    json[r'maxResults'] = maxResults;
  }
  if (query != null) {
    json[r'query'] = query;
  }
  if (startAt != null) {
    json[r'startAt'] = startAt;
  }
  if (validation != null) {
    json[r'validation'] = validation.value;
  }
  return json;
}