SubscriptionSchedulesResourceDefaultSettingsAutomaticTax.fromJson constructor

SubscriptionSchedulesResourceDefaultSettingsAutomaticTax.fromJson(
  1. Object? json
)

Implementation

factory SubscriptionSchedulesResourceDefaultSettingsAutomaticTax.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SubscriptionSchedulesResourceDefaultSettingsAutomaticTax(
    enabled: (map['enabled'] as bool),
    liability: map['liability'] == null
        ? null
        : ConnectAccountReference.fromJson(map['liability']),
  );
}