toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var expand = this.expand;
  var issues = this.issues;
  var maxResults = this.maxResults;
  var names = this.names;
  var schema = this.schema;
  var startAt = this.startAt;
  var total = this.total;
  var warningMessages = this.warningMessages;

  final json = <String, Object?>{};
  if (expand != null) {
    json[r'expand'] = expand;
  }
  json[r'issues'] = issues.map((i) => i.toJson()).toList();
  if (maxResults != null) {
    json[r'maxResults'] = maxResults;
  }
  if (names != null) {
    json[r'names'] = names;
  }
  if (schema != null) {
    json[r'schema'] = schema;
  }
  if (startAt != null) {
    json[r'startAt'] = startAt;
  }
  if (total != null) {
    json[r'total'] = total;
  }
  json[r'warningMessages'] = warningMessages;
  return json;
}