toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'plan_id'] = this.planId;
  json[r'currency'] = this.currency;
  json[r'amount'] = this.amount;
  if (this.annualMonthlyAmount != null) {
    json[r'annual_monthly_amount'] = this.annualMonthlyAmount;
  } else {
    json[r'annual_monthly_amount'] = null;
  }
  if (this.description != null) {
    json[r'description'] = this.description;
  } else {
    json[r'description'] = null;
  }
  return json;
}