SendRfpRequest.fromJson constructor

SendRfpRequest.fromJson(
  1. Map json_
)

Implementation

SendRfpRequest.fromJson(core.Map json_)
    : this(
        buyerContacts: json_.containsKey('buyerContacts')
            ? (json_['buyerContacts'] as core.List)
                .map((value) => Contact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        client: json_.containsKey('client')
            ? json_['client'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        estimatedGrossSpend: json_.containsKey('estimatedGrossSpend')
            ? Money.fromJson(json_['estimatedGrossSpend']
                as core.Map<core.String, core.dynamic>)
            : null,
        flightEndTime: json_.containsKey('flightEndTime')
            ? json_['flightEndTime'] as core.String
            : null,
        flightStartTime: json_.containsKey('flightStartTime')
            ? json_['flightStartTime'] as core.String
            : null,
        geoTargeting: json_.containsKey('geoTargeting')
            ? CriteriaTargeting.fromJson(
                json_['geoTargeting'] as core.Map<core.String, core.dynamic>)
            : null,
        inventorySizeTargeting: json_.containsKey('inventorySizeTargeting')
            ? InventorySizeTargeting.fromJson(json_['inventorySizeTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        note: json_.containsKey('note') ? json_['note'] as core.String : null,
        preferredDealTerms: json_.containsKey('preferredDealTerms')
            ? PreferredDealTerms.fromJson(json_['preferredDealTerms']
                as core.Map<core.String, core.dynamic>)
            : null,
        programmaticGuaranteedTerms:
            json_.containsKey('programmaticGuaranteedTerms')
                ? ProgrammaticGuaranteedTerms.fromJson(
                    json_['programmaticGuaranteedTerms']
                        as core.Map<core.String, core.dynamic>)
                : null,
        publisherProfile: json_.containsKey('publisherProfile')
            ? json_['publisherProfile'] as core.String
            : null,
      );