toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.modelId != null) {
    json[r'model_id'] = this.modelId;
  } else {
    json[r'model_id'] = null;
  }
  if (this.currentAt != null) {
    json[r'current_at'] = this.currentAt;
  } else {
    json[r'current_at'] = null;
  }
  if (this.currentDownloads != null) {
    json[r'current_downloads'] = this.currentDownloads;
  } else {
    json[r'current_downloads'] = null;
  }
  if (this.baselineAt != null) {
    json[r'baseline_at'] = this.baselineAt;
  } else {
    json[r'baseline_at'] = null;
  }
  if (this.baselineDownloads != null) {
    json[r'baseline_downloads'] = this.baselineDownloads;
  } else {
    json[r'baseline_downloads'] = null;
  }
  if (this.ratio != null) {
    json[r'ratio'] = this.ratio;
  } else {
    json[r'ratio'] = null;
  }
  if (this.delta != null) {
    json[r'delta'] = this.delta;
  } else {
    json[r'delta'] = null;
  }
  if (this.kind != null) {
    json[r'kind'] = this.kind;
  } else {
    json[r'kind'] = null;
  }
  return json;
}