ListInventoriesResponse.fromJson constructor

ListInventoriesResponse.fromJson(
  1. Map _json
)

Implementation

ListInventoriesResponse.fromJson(core.Map _json)
    : this(
        inventories: _json.containsKey('inventories')
            ? (_json['inventories'] as core.List)
                .map<Inventory>((value) => Inventory.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
      );