UArHitResult.fromMap constructor

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

Implementation

factory UArHitResult.fromMap(Map<Object?, Object?> map) => UArHitResult(
  pose: UArPose.fromList(map["pose"]),
  distance: _d(map["distance"]),
  type: _enumOf(UArHitType.values, map["type"], UArHitType.estimated),
  trackableId: map["trackableId"] as String?,
  planeType: map["planeType"] == null ? null : _enumOf(UArPlaneType.values, map["planeType"], UArPlaneType.horizontalUp),
  classification: _enumOf(UArPlaneClassification.values, map["classification"], UArPlaneClassification.none),
);