StoreCluster.fromJson constructor

StoreCluster.fromJson(
  1. Map json_
)

Implementation

StoreCluster.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        name: json_.containsKey('name')
            ? (json_['name'] as core.List)
                .map((value) => LocalizedText.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        orderInPage: json_.containsKey('orderInPage')
            ? json_['orderInPage'] as core.String
            : null,
        productId: json_.containsKey('productId')
            ? (json_['productId'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );