AudioAd.fromJson constructor

AudioAd.fromJson(
  1. Map json_
)

Implementation

AudioAd.fromJson(core.Map json_)
    : this(
        displayUrl: json_.containsKey('displayUrl')
            ? json_['displayUrl'] as core.String
            : null,
        finalUrl: json_.containsKey('finalUrl')
            ? json_['finalUrl'] as core.String
            : null,
        trackingUrl: json_.containsKey('trackingUrl')
            ? json_['trackingUrl'] as core.String
            : null,
        video: json_.containsKey('video')
            ? YoutubeVideoDetails.fromJson(
                json_['video'] as core.Map<core.String, core.dynamic>)
            : null,
      );