resumeReadID method
Implementation
@override
Future<ReadIDResult> resumeReadID() async {
final result = await methodChannel.invokeMethod<dynamic>("resumeReadID");
if (result is Map) {
return ReadIDResult.fromJson(Map<String, dynamic>.from(result));
} else if (result is String) {
try {
return ReadIDResult.fromJson(jsonDecode(result));
} catch (e) {
throw Exception('Error parsing JSON: $e');
}
} else {
throw Exception('Unexpected result type: ${result?.runtimeType}');
}
}