Entitlement.fromJson constructor

Entitlement.fromJson(
  1. Map json_
)

Implementation

Entitlement.fromJson(core.Map json_)
    : this(
        account: json_.containsKey('account')
            ? json_['account'] as core.String
            : null,
        cancellationReason: json_.containsKey('cancellationReason')
            ? json_['cancellationReason'] as core.String
            : null,
        consumers: json_.containsKey('consumers')
            ? (json_['consumers'] as core.List)
                .map((value) => Consumer.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        entitlementBenefitIds: json_.containsKey('entitlementBenefitIds')
            ? (json_['entitlementBenefitIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        inputProperties: json_.containsKey('inputProperties')
            ? json_['inputProperties'] as core.Map<core.String, core.dynamic>
            : null,
        messageToUser: json_.containsKey('messageToUser')
            ? json_['messageToUser'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        newOfferEndTime: json_.containsKey('newOfferEndTime')
            ? json_['newOfferEndTime'] as core.String
            : null,
        newOfferStartTime: json_.containsKey('newOfferStartTime')
            ? json_['newOfferStartTime'] as core.String
            : null,
        newPendingOffer: json_.containsKey('newPendingOffer')
            ? json_['newPendingOffer'] as core.String
            : null,
        newPendingOfferDuration: json_.containsKey('newPendingOfferDuration')
            ? json_['newPendingOfferDuration'] as core.String
            : null,
        newPendingPlan: json_.containsKey('newPendingPlan')
            ? json_['newPendingPlan'] as core.String
            : null,
        offer:
            json_.containsKey('offer') ? json_['offer'] as core.String : null,
        offerDuration: json_.containsKey('offerDuration')
            ? json_['offerDuration'] as core.String
            : null,
        offerEndTime: json_.containsKey('offerEndTime')
            ? json_['offerEndTime'] as core.String
            : null,
        orderId: json_.containsKey('orderId')
            ? json_['orderId'] as core.String
            : null,
        plan: json_.containsKey('plan') ? json_['plan'] as core.String : null,
        product: json_.containsKey('product')
            ? json_['product'] as core.String
            : null,
        productExternalName: json_.containsKey('productExternalName')
            ? json_['productExternalName'] as core.String
            : null,
        provider: json_.containsKey('provider')
            ? json_['provider'] as core.String
            : null,
        quoteExternalName: json_.containsKey('quoteExternalName')
            ? json_['quoteExternalName'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
        subscriptionEndTime: json_.containsKey('subscriptionEndTime')
            ? json_['subscriptionEndTime'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        usageReportingId: json_.containsKey('usageReportingId')
            ? json_['usageReportingId'] as core.String
            : null,
      );