GuaranteedFixedPriceTerms.fromJson constructor

GuaranteedFixedPriceTerms.fromJson(
  1. Map _json
)

Implementation

GuaranteedFixedPriceTerms.fromJson(core.Map _json)
    : this(
        fixedPrices: _json.containsKey('fixedPrices')
            ? (_json['fixedPrices'] as core.List)
                .map<PricePerBuyer>((value) => PricePerBuyer.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        guaranteedImpressions: _json.containsKey('guaranteedImpressions')
            ? _json['guaranteedImpressions'] as core.String
            : null,
        guaranteedLooks: _json.containsKey('guaranteedLooks')
            ? _json['guaranteedLooks'] as core.String
            : null,
        impressionCap: _json.containsKey('impressionCap')
            ? _json['impressionCap'] as core.String
            : null,
        minimumDailyLooks: _json.containsKey('minimumDailyLooks')
            ? _json['minimumDailyLooks'] as core.String
            : null,
        percentShareOfVoice: _json.containsKey('percentShareOfVoice')
            ? _json['percentShareOfVoice'] as core.String
            : null,
        reservationType: _json.containsKey('reservationType')
            ? _json['reservationType'] as core.String
            : null,
      );