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.setFromHex32(json["color"]);
}