fromMap static method

ARNode fromMap(
  1. Map<String, dynamic> map
)

Implementation

static ARNode fromMap(Map<String, dynamic> map) {
  return ARNode(
      type: NodeType.values[map["type"]],
      uri: map["uri"] as String,
      name: map["name"] as String,
      transformation: MatrixConverter().fromJson(map["transformation"]),
      data: Map<String, dynamic>.from(map["data"]));
}