toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'organization_id'] = this.organizationId;
json[r'product_id'] = this.productId;
if (this.totalSeats != null) {
json[r'total_seats'] = this.totalSeats;
} else {
json[r'total_seats'] = null;
}
if (this.pricePerSeat != null) {
json[r'price_per_seat'] = this.pricePerSeat;
} else {
json[r'price_per_seat'] = null;
}
if (this.billingCycle != null) {
json[r'billing_cycle'] = this.billingCycle;
} else {
json[r'billing_cycle'] = null;
}
if (this.status != null) {
json[r'status'] = this.status;
} else {
json[r'status'] = null;
}
if (this.endDate != null) {
json[r'end_date'] = this.endDate!.toUtc().toIso8601String();
} else {
json[r'end_date'] = null;
}
return json;
}