UArFace.fromMap constructor
Implementation
factory UArFace.fromMap(Map<Object?, Object?> map) {
final Map<Object?, Object?> regions = _map(map["regions"]);
final Map<Object?, Object?> shapes = _map(map["blendShapes"]);
final List<double> look = _doubles(map["lookAt"]);
return UArFace(
id: "${map["id"]}",
pose: UArPose.fromList(map["pose"]),
regions: <String, UArPose>{for (final MapEntry<Object?, Object?> e in regions.entries) "${e.key}": UArPose.fromList(e.value)},
blendShapes: <String, double>{for (final MapEntry<Object?, Object?> e in shapes.entries) "${e.key}": _d(e.value)},
lookAt: look.length == 3 ? UArVector3.fromList(look) : null,
);
}