Subscription.fromJson constructor

Subscription.fromJson(
  1. Map json_
)

Implementation

Subscription.fromJson(core.Map json_)
    : this(
        archived: json_.containsKey('archived')
            ? json_['archived'] as core.bool
            : null,
        basePlans: json_.containsKey('basePlans')
            ? (json_['basePlans'] as core.List)
                .map((value) => BasePlan.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        listings: json_.containsKey('listings')
            ? (json_['listings'] as core.List)
                .map((value) => SubscriptionListing.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        packageName: json_.containsKey('packageName')
            ? json_['packageName'] as core.String
            : null,
        productId: json_.containsKey('productId')
            ? json_['productId'] as core.String
            : null,
        taxAndComplianceSettings:
            json_.containsKey('taxAndComplianceSettings')
                ? SubscriptionTaxAndComplianceSettings.fromJson(
                    json_['taxAndComplianceSettings']
                        as core.Map<core.String, core.dynamic>)
                : null,
      );