toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.currency != null) {
    json[r'currency'] = this.currency;
  } else {
    json[r'currency'] = null;
  }
  if (this.enforce != null) {
    json[r'enforce'] = this.enforce;
  } else {
    json[r'enforce'] = null;
  }
  if (this.project != null) {
    json[r'project'] = this.project;
  } else {
    json[r'project'] = null;
  }
  if (this.rateLimitRpm != null) {
    json[r'rateLimitRpm'] = this.rateLimitRpm;
  } else {
    json[r'rateLimitRpm'] = null;
  }
  if (this.service != null) {
    json[r'service'] = this.service;
  } else {
    json[r'service'] = null;
  }
  if (this.softPct != null) {
    json[r'softPct'] = this.softPct;
  } else {
    json[r'softPct'] = null;
  }
  if (this.subject != null) {
    json[r'subject'] = this.subject;
  } else {
    json[r'subject'] = null;
  }
  if (this.threshold != null) {
    json[r'threshold'] = this.threshold;
  } else {
    json[r'threshold'] = null;
  }
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  return json;
}