VideoListResponse.fromJson constructor

VideoListResponse.fromJson(
  1. Map json_
)

Implementation

VideoListResponse.fromJson(core.Map json_)
    : this(
        etag: json_.containsKey('etag') ? json_['etag'] as core.String : null,
        eventId: json_.containsKey('eventId')
            ? json_['eventId'] as core.String
            : null,
        items: json_.containsKey('items')
            ? (json_['items'] as core.List)
                .map((value) => Video.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        pageInfo: json_.containsKey('pageInfo')
            ? PageInfo.fromJson(
                json_['pageInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        prevPageToken: json_.containsKey('prevPageToken')
            ? json_['prevPageToken'] as core.String
            : null,
        tokenPagination: json_.containsKey('tokenPagination')
            ? TokenPagination.fromJson(json_['tokenPagination']
                as core.Map<core.String, core.dynamic>)
            : null,
        visitorId: json_.containsKey('visitorId')
            ? json_['visitorId'] as core.String
            : null,
      );