toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'object'] = this.object;
json[r'id'] = this.id;
json[r'name'] = this.name;
json[r'fee'] = this.fee;
if (this.annualMonthlyFee != null) {
json[r'annual_monthly_fee'] = this.annualMonthlyFee;
} else {
json[r'annual_monthly_fee'] = null;
}
if (this.annualFee != null) {
json[r'annual_fee'] = this.annualFee;
} else {
json[r'annual_fee'] = null;
}
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
json[r'product_id'] = this.productId;
json[r'is_default'] = this.isDefault;
json[r'is_recurring'] = this.isRecurring;
json[r'publicly_visible'] = this.publiclyVisible;
json[r'has_base_fee'] = this.hasBaseFee;
json[r'for_payer_type'] = this.forPayerType;
json[r'slug'] = this.slug;
if (this.avatarUrl != null) {
json[r'avatar_url'] = this.avatarUrl;
} else {
json[r'avatar_url'] = null;
}
json[r'features'] = this.features;
json[r'free_trial_enabled'] = this.freeTrialEnabled;
if (this.freeTrialDays != null) {
json[r'free_trial_days'] = this.freeTrialDays;
} else {
json[r'free_trial_days'] = null;
}
return json;
}