Material.fromJSON constructor

Material.fromJSON(
  1. Map<String, dynamic> json,
  2. Map<String, dynamic> rootJSON
)

Implementation

Material.fromJSON(Map<String, dynamic> json, Map<String, dynamic> rootJSON) {
  uuid = json["uuid"];
  type = json["type"];
  color.setHex(json["color"]);
}