NonSkippableAd.fromJson constructor

NonSkippableAd.fromJson(
  1. Map json_
)

Implementation

NonSkippableAd.fromJson(core.Map json_)
    : this(
        commonInStreamAttribute: json_.containsKey('commonInStreamAttribute')
            ? CommonInStreamAttribute.fromJson(
                json_['commonInStreamAttribute']
                    as core.Map<core.String, core.dynamic>)
            : null,
        customParameters: json_.containsKey('customParameters')
            ? (json_['customParameters']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );