ProductsListResponse.fromJson constructor

ProductsListResponse.fromJson(
  1. Map json_
)

Implementation

ProductsListResponse.fromJson(core.Map json_)
    : this(
        pageInfo: json_.containsKey('pageInfo')
            ? PageInfo.fromJson(
                json_['pageInfo'] as core.Map<core.String, core.dynamic>)
            : null,
        product: json_.containsKey('product')
            ? (json_['product'] as core.List)
                .map((value) => Product.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,
      );