fromJson method
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;
}
}