SubscriptionBillingCycleAnchorConfig.fromJson constructor
SubscriptionBillingCycleAnchorConfig.fromJson(
- Object? json
Implementation
factory SubscriptionBillingCycleAnchorConfig.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SubscriptionBillingCycleAnchorConfig(
dayOfMonth: (map['day_of_month'] as num).toInt(),
hour: map['hour'] == null ? null : (map['hour'] as num).toInt(),
minute: map['minute'] == null ? null : (map['minute'] as num).toInt(),
month: map['month'] == null ? null : (map['month'] as num).toInt(),
second: map['second'] == null ? null : (map['second'] as num).toInt(),
);
}