apply static method

Future<ScLoanSuccess> apply(
  1. ScLoanInfo loanInfo
)

Implementation

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