Pose.fromMap constructor

Pose.fromMap(
  1. Map<Object?, Object?> map
)

Implementation

factory Pose.fromMap(Map<Object?, Object?> map) {
  final landmarkObjectList = map['landmarks'] as List;
  final landmarkList =
      landmarkObjectList.map((it) => PoseLandmark.fromMap(it)).toList();
  return Pose(landmarks: landmarkList);
}