verifyDriversLicence function

Future<DLResponse> verifyDriversLicence(
  1. DLRequest request
)

Implementation

Future<DLResponse> verifyDriversLicence(DLRequest request) async{
  initializationCheck();

  var response = await _netWorkClient.executeRequest(client.Request(
      url: "IdentityVerification/DriverLicence",
      body: jsonEncode(request),
      apiCredentials: BlusaltSDK.apiCredentials,
      requestMethod: Method.POST));

    var data = response as Response;
    var dlData = DLResponse.fromJson(jsonDecode(data.body));
    return dlData;
}