toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.productName != null) {
json[r'product_name'] = this.productName;
} else {
json[r'product_name'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.currentPeriodEnd != null) {
json[r'current_period_end'] = this.currentPeriodEnd!.toUtc().toIso8601String();
} else {
json[r'current_period_end'] = null;
}
if (this.usageCount != null) {
json[r'usage_count'] = this.usageCount;
} else {
json[r'usage_count'] = null;
}
if (this.usageLimit != null) {
json[r'usage_limit'] = this.usageLimit;
} else {
json[r'usage_limit'] = null;
}
return json;
}