SubscriptionCreateOptionsBillingCycleAnchorConfig.fromJson constructor
SubscriptionCreateOptionsBillingCycleAnchorConfig.fromJson(
- Object? json
Implementation
factory SubscriptionCreateOptionsBillingCycleAnchorConfig.fromJson(
Object? json) {
final map = (json as Map).cast<String, Object?>();
return SubscriptionCreateOptionsBillingCycleAnchorConfig(
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(),
);
}