ReviewsListResponse.fromJson constructor

ReviewsListResponse.fromJson(
  1. Map json_
)

Implementation

ReviewsListResponse.fromJson(core.Map json_)
    : this(
        pageInfo: json_.containsKey('pageInfo')
            ? PageInfo.fromJson(
                json_['pageInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        reviews: json_.containsKey('reviews')
            ? (json_['reviews'] as core.List)
                .map((value) => Review.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        tokenPagination: json_.containsKey('tokenPagination')
            ? TokenPagination.fromJson(json_['tokenPagination']
                as core.Map<core.String, core.dynamic>)
            : null,
      );