toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.model != null) {
json[r'model'] = this.model;
} else {
json[r'model'] = null;
}
if (this.pct != null) {
json[r'pct'] = this.pct;
} else {
json[r'pct'] = 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.spendCents != null) {
json[r'spendCents'] = this.spendCents;
} else {
json[r'spendCents'] = null;
}
if (this.tokens != null) {
json[r'tokens'] = this.tokens;
} else {
json[r'tokens'] = null;
}
return json;
}