toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.account != null) {
    json[r'account'] = this.account;
  } else {
    json[r'account'] = null;
  }
  if (this.cachedInputTokens != null) {
    json[r'cachedInputTokens'] = this.cachedInputTokens;
  } else {
    json[r'cachedInputTokens'] = null;
  }
  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.costLimitCents != null) {
    json[r'costLimitCents'] = this.costLimitCents;
  } else {
    json[r'costLimitCents'] = null;
  }
  if (this.currency != null) {
    json[r'currency'] = this.currency;
  } else {
    json[r'currency'] = null;
  }
  if (this.inputTokens != null) {
    json[r'inputTokens'] = this.inputTokens;
  } else {
    json[r'inputTokens'] = null;
  }
  if (this.lane != null) {
    json[r'lane'] = this.lane;
  } else {
    json[r'lane'] = null;
  }
  if (this.machine != null) {
    json[r'machine'] = this.machine;
  } else {
    json[r'machine'] = null;
  }
  if (this.outputTokens != null) {
    json[r'outputTokens'] = this.outputTokens;
  } else {
    json[r'outputTokens'] = null;
  }
  if (this.plan != null) {
    json[r'plan'] = this.plan;
  } else {
    json[r'plan'] = null;
  }
  if (this.requests != null) {
    json[r'requests'] = this.requests;
  } else {
    json[r'requests'] = null;
  }
  if (this.resetsAt != null) {
    json[r'resetsAt'] = this.resetsAt;
  } else {
    json[r'resetsAt'] = null;
  }
  if (this.synthetic != null) {
    json[r'synthetic'] = this.synthetic;
  } else {
    json[r'synthetic'] = null;
  }
  if (this.totalTokens != null) {
    json[r'totalTokens'] = this.totalTokens;
  } else {
    json[r'totalTokens'] = 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.windowMinutes != null) {
    json[r'windowMinutes'] = this.windowMinutes;
  } else {
    json[r'windowMinutes'] = null;
  }
  if (this.windowStart != null) {
    json[r'windowStart'] = this.windowStart;
  } else {
    json[r'windowStart'] = null;
  }
  return json;
}