ListAdUnitsResponse.fromJson constructor

ListAdUnitsResponse.fromJson(
  1. Map json_
)

Implementation

ListAdUnitsResponse.fromJson(core.Map json_)
    : this(
        adUnits: json_.containsKey('adUnits')
            ? (json_['adUnits'] as core.List)
                .map((value) => AdUnit.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );