toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['RecurringId'] = recurringId;
  data['RecurringStatus'] = recurringStatus;
  data['CreationDate'] = creationDate;
  data['RecurringValue'] = recurringValue;
  data['RecurringType'] = recurringType;
  data['IntervalDays'] = intervalDays;
  data['ExecutedTimes'] = executedTimes;
  data['LastPayDate'] = lastPayDate;
  data['NextPayDate'] = nextPayDate;
  data['IsActive'] = isActive;
  if (recurringInvoices != null) {
    data['RecurringInvoices'] =
        recurringInvoices!.map((v) => v.toJson()).toList();
  }
  return data;
}