MFRecurringPayment.fromJson constructor

MFRecurringPayment.fromJson(
  1. Map<String, dynamic> json
)

Implementation

MFRecurringPayment.fromJson(Map<String, dynamic> json) {
  recurringId = json['RecurringId'];
  recurringStatus = json['RecurringStatus'];
  creationDate = json['CreationDate'];
  recurringValue = json['RecurringValue'];
  recurringType = json['RecurringType'];
  intervalDays = json['IntervalDays'];
  executedTimes = json['ExecutedTimes'];
  lastPayDate = json['LastPayDate'];
  nextPayDate = json['NextPayDate'];
  isActive = json['IsActive'];
  if (json['RecurringInvoices'] != null) {
    recurringInvoices = <MFRecurringInvoice>[];
    json['RecurringInvoices'].forEach((v) {
      recurringInvoices!.add(MFRecurringInvoice.fromJson(v));
    });
  }
}