Future<String?> generateOtp() async { try { String? result = await restApi.generateOtp(toJson()); return result; } on PlatformException catch (e) { return Future.error(e); } }