toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.confidence != null) {
    json[r'confidence'] = this.confidence;
  } else {
    json[r'confidence'] = null;
  }
  if (this.costCents != null) {
    json[r'costCents'] = this.costCents;
  } else {
    json[r'costCents'] = null;
  }
  if (this.provider != null) {
    json[r'provider'] = this.provider;
  } else {
    json[r'provider'] = null;
  }
  if (this.requests != null) {
    json[r'requests'] = this.requests;
  } else {
    json[r'requests'] = null;
  }
  if (this.scope != null) {
    json[r'scope'] = this.scope;
  } else {
    json[r'scope'] = null;
  }
  if (this.source_ != null) {
    json[r'source'] = this.source_;
  } else {
    json[r'source'] = null;
  }
  if (this.tokens != null) {
    json[r'tokens'] = this.tokens;
  } else {
    json[r'tokens'] = null;
  }
  if (this.usedPct != null) {
    json[r'usedPct'] = this.usedPct;
  } else {
    json[r'usedPct'] = null;
  }
  if (this.window != null) {
    json[r'window'] = this.window;
  } else {
    json[r'window'] = null;
  }
  if (this.windows != null) {
    json[r'windows'] = this.windows;
  } else {
    json[r'windows'] = null;
  }
  return json;
}