ListBrandsResponse.fromJson constructor

ListBrandsResponse.fromJson(
  1. Map json_
)

Implementation

ListBrandsResponse.fromJson(core.Map json_)
    : this(
        brands: json_.containsKey('brands')
            ? (json_['brands'] as core.List)
                .map((value) => Brand.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );