ListCategoriesResponse.fromJson constructor

ListCategoriesResponse.fromJson(
  1. Map json_
)

Implementation

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