AutoRenewingBasePlanType.fromJson constructor

AutoRenewingBasePlanType.fromJson(
  1. Map json_
)

Implementation

AutoRenewingBasePlanType.fromJson(core.Map json_)
    : this(
        accountHoldDuration: json_.containsKey('accountHoldDuration')
            ? json_['accountHoldDuration'] as core.String
            : null,
        billingPeriodDuration: json_.containsKey('billingPeriodDuration')
            ? json_['billingPeriodDuration'] as core.String
            : null,
        gracePeriodDuration: json_.containsKey('gracePeriodDuration')
            ? json_['gracePeriodDuration'] as core.String
            : null,
        legacyCompatible: json_.containsKey('legacyCompatible')
            ? json_['legacyCompatible'] as core.bool
            : null,
        legacyCompatibleSubscriptionOfferId:
            json_.containsKey('legacyCompatibleSubscriptionOfferId')
                ? json_['legacyCompatibleSubscriptionOfferId'] as core.String
                : null,
        prorationMode: json_.containsKey('prorationMode')
            ? json_['prorationMode'] as core.String
            : null,
        resubscribeState: json_.containsKey('resubscribeState')
            ? json_['resubscribeState'] as core.String
            : null,
      );