service static method

Future<ScLoanSuccess> service(
  1. ScLoanInfo loanInfo
)

Implementation

static Future<ScLoanSuccess> service(ScLoanInfo loanInfo) async {
  try {
    String? serviceResponse =
        await _channel.invokeMethod('service', <String, dynamic>{
      "interactionToken": loanInfo.interactionToken,
    });
    return ScLoanSuccess.fromJson(serviceResponse ?? "{}");
  } on PlatformException catch (e) {
    throw e.toScLoanError;
  }
}