RecurringCharge.fromJson constructor

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

Implementation

factory RecurringCharge.fromJson(Map<String, dynamic> json) {
  return RecurringCharge(
    cost: json['cost'] != null
        ? MonetaryAmount.fromJson(json['cost'] as Map<String, dynamic>)
        : null,
    frequency: (json['frequency'] as String?)?.toRecurringChargeFrequency(),
  );
}