toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var expand = this.expand;
  var fields = this.fields;
  var fieldsByKeys = this.fieldsByKeys;
  var jql = this.jql;
  var maxResults = this.maxResults;
  var properties = this.properties;
  var startAt = this.startAt;
  var validateQuery = this.validateQuery;

  final json = <String, Object?>{};
  json[r'expand'] = expand;
  json[r'fields'] = fields;
  json[r'fieldsByKeys'] = fieldsByKeys;
  if (jql != null) {
    json[r'jql'] = jql;
  }
  if (maxResults != null) {
    json[r'maxResults'] = maxResults;
  }
  json[r'properties'] = properties;
  if (startAt != null) {
    json[r'startAt'] = startAt;
  }
  if (validateQuery != null) {
    json[r'validateQuery'] = validateQuery.value;
  }
  return json;
}