ProgrammaticGuaranteedTerms.fromJson constructor

ProgrammaticGuaranteedTerms.fromJson(
  1. Map json_
)

Implementation

ProgrammaticGuaranteedTerms.fromJson(core.Map json_)
    : this(
        fixedPrice: json_.containsKey('fixedPrice')
            ? Price.fromJson(
                json_['fixedPrice'] as core.Map<core.String, core.dynamic>)
            : 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,
      );