public Asset(String type, Map<String, Serializable> asset) {
String id = (String)asset.get("id");
String value = (String)asset.get("value");
List<String> depends = (List<String>)asset.get("depends");
AssetLocation location = AssetLocation.safeValueOf((String)asset.get("location"));
Integer maxAge = (Integer)asset.get("maxAge");
String minified = (String)asset.get("minified");
Boolean header = (Boolean)asset.get("header");
List<ElementHandle.Type> minifiersTypes = (List<ElementHandle.Type>)asset.get("minifier");