SubscriptionsResourceBillingCycleAnchorConfig.fromJson constructor

SubscriptionsResourceBillingCycleAnchorConfig.fromJson(
  1. Object? json
)

Implementation

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