toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.productId != null) {
json[r'product_id'] = this.productId;
} else {
json[r'product_id'] = null;
}
if (this.productName != null) {
json[r'product_name'] = this.productName;
} else {
json[r'product_name'] = null;
}
if (this.requestCount != null) {
json[r'request_count'] = this.requestCount;
} else {
json[r'request_count'] = null;
}
if (this.rateLimit != null) {
json[r'rate_limit'] = this.rateLimit;
} else {
json[r'rate_limit'] = null;
}
if (this.rateLimitRemaining != null) {
json[r'rate_limit_remaining'] = this.rateLimitRemaining;
} else {
json[r'rate_limit_remaining'] = null;
}
return json;
}