DealTerms.fromJson constructor

DealTerms.fromJson(
  1. Map json_
)

Implementation

DealTerms.fromJson(core.Map json_)
    : this(
        brandingType: json_.containsKey('brandingType')
            ? json_['brandingType'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        estimatedGrossSpend: json_.containsKey('estimatedGrossSpend')
            ? Price.fromJson(json_['estimatedGrossSpend']
                as core.Map<core.String, core.dynamic>)
            : null,
        estimatedImpressionsPerDay:
            json_.containsKey('estimatedImpressionsPerDay')
                ? json_['estimatedImpressionsPerDay'] as core.String
                : null,
        guaranteedFixedPriceTerms:
            json_.containsKey('guaranteedFixedPriceTerms')
                ? GuaranteedFixedPriceTerms.fromJson(
                    json_['guaranteedFixedPriceTerms']
                        as core.Map<core.String, core.dynamic>)
                : null,
        nonGuaranteedAuctionTerms:
            json_.containsKey('nonGuaranteedAuctionTerms')
                ? NonGuaranteedAuctionTerms.fromJson(
                    json_['nonGuaranteedAuctionTerms']
                        as core.Map<core.String, core.dynamic>)
                : null,
        nonGuaranteedFixedPriceTerms:
            json_.containsKey('nonGuaranteedFixedPriceTerms')
                ? NonGuaranteedFixedPriceTerms.fromJson(
                    json_['nonGuaranteedFixedPriceTerms']
                        as core.Map<core.String, core.dynamic>)
                : null,
        sellerTimeZone: json_.containsKey('sellerTimeZone')
            ? json_['sellerTimeZone'] as core.String
            : null,
      );