fromJson method

  1. @override
ARHitTestResultType fromJson(
  1. int json
)

Converts the type of an ARHitTestResult from its integer representation to the ARHitTestResultType

Implementation

@override
ARHitTestResultType fromJson(int json) {
  switch (json) {
    case 1:
      return ARHitTestResultType.plane;
    case 2:
      return ARHitTestResultType.point;
    default:
      return ARHitTestResultType.undefined;
  }
}