BatchGetAmpUrlsResponse.fromJson constructor

BatchGetAmpUrlsResponse.fromJson(
  1. Map json_
)

Implementation

BatchGetAmpUrlsResponse.fromJson(core.Map json_)
    : this(
        ampUrls: json_.containsKey('ampUrls')
            ? (json_['ampUrls'] as core.List)
                .map((value) => AmpUrl.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        urlErrors: json_.containsKey('urlErrors')
            ? (json_['urlErrors'] as core.List)
                .map((value) => AmpUrlError.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );