toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.end != null) {
    json[r'end'] = this.end;
  } else {
    json[r'end'] = null;
  }
  if (this.export_ != null) {
    json[r'export'] = this.export_;
  } else {
    json[r'export'] = null;
  }
  if (this.plan != null) {
    json[r'plan'] = this.plan;
  } else {
    json[r'plan'] = null;
  }
  if (this.providers != null) {
    json[r'providers'] = this.providers;
  } else {
    json[r'providers'] = null;
  }
  if (this.range != null) {
    json[r'range'] = this.range;
  } else {
    json[r'range'] = null;
  }
  if (this.retentionDays != null) {
    json[r'retentionDays'] = this.retentionDays;
  } else {
    json[r'retentionDays'] = null;
  }
  if (this.scope != null) {
    json[r'scope'] = this.scope;
  } else {
    json[r'scope'] = null;
  }
  if (this.start != null) {
    json[r'start'] = this.start;
  } else {
    json[r'start'] = null;
  }
  return json;
}