SessionRecurring.fromJson constructor

SessionRecurring.fromJson(
  1. Object? json
)

Implementation

factory SessionRecurring.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SessionRecurring(
    interval: InvoiceitemPlanInterval.fromJson(map['interval']),
    intervalCount: map['interval_count'] == null
        ? null
        : (map['interval_count'] as num).toInt(),
  );
}