Deal.fromJson constructor

Deal.fromJson(
  1. Map json_
)

Implementation

Deal.fromJson(core.Map json_)
    : this(
        availableEndTime: json_.containsKey('availableEndTime')
            ? json_['availableEndTime'] as core.String
            : null,
        availableStartTime: json_.containsKey('availableStartTime')
            ? json_['availableStartTime'] as core.String
            : null,
        buyerPrivateData: json_.containsKey('buyerPrivateData')
            ? PrivateData.fromJson(json_['buyerPrivateData']
                as core.Map<core.String, core.dynamic>)
            : null,
        createProductId: json_.containsKey('createProductId')
            ? json_['createProductId'] as core.String
            : null,
        createProductRevision: json_.containsKey('createProductRevision')
            ? json_['createProductRevision'] as core.String
            : null,
        createTime: json_.containsKey('createTime')
            ? json_['createTime'] as core.String
            : null,
        creativePreApprovalPolicy:
            json_.containsKey('creativePreApprovalPolicy')
                ? json_['creativePreApprovalPolicy'] as core.String
                : null,
        creativeRestrictions: json_.containsKey('creativeRestrictions')
            ? CreativeRestrictions.fromJson(json_['creativeRestrictions']
                as core.Map<core.String, core.dynamic>)
            : null,
        creativeSafeFrameCompatibility:
            json_.containsKey('creativeSafeFrameCompatibility')
                ? json_['creativeSafeFrameCompatibility'] as core.String
                : null,
        dealId: json_.containsKey('dealId')
            ? json_['dealId'] as core.String
            : null,
        dealServingMetadata: json_.containsKey('dealServingMetadata')
            ? DealServingMetadata.fromJson(json_['dealServingMetadata']
                as core.Map<core.String, core.dynamic>)
            : null,
        dealTerms: json_.containsKey('dealTerms')
            ? DealTerms.fromJson(
                json_['dealTerms'] as core.Map<core.String, core.dynamic>)
            : null,
        deliveryControl: json_.containsKey('deliveryControl')
            ? DeliveryControl.fromJson(json_['deliveryControl']
                as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        externalDealId: json_.containsKey('externalDealId')
            ? json_['externalDealId'] as core.String
            : null,
        isSetupComplete: json_.containsKey('isSetupComplete')
            ? json_['isSetupComplete'] as core.bool
            : null,
        programmaticCreativeSource:
            json_.containsKey('programmaticCreativeSource')
                ? json_['programmaticCreativeSource'] as core.String
                : null,
        proposalId: json_.containsKey('proposalId')
            ? json_['proposalId'] as core.String
            : null,
        sellerContacts: json_.containsKey('sellerContacts')
            ? (json_['sellerContacts'] as core.List)
                .map((value) => ContactInformation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        syndicationProduct: json_.containsKey('syndicationProduct')
            ? json_['syndicationProduct'] as core.String
            : null,
        targeting: json_.containsKey('targeting')
            ? MarketplaceTargeting.fromJson(
                json_['targeting'] as core.Map<core.String, core.dynamic>)
            : null,
        targetingCriterion: json_.containsKey('targetingCriterion')
            ? (json_['targetingCriterion'] as core.List)
                .map((value) => TargetingCriteria.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
        webPropertyCode: json_.containsKey('webPropertyCode')
            ? json_['webPropertyCode'] as core.String
            : null,
      );