asMap method

Map asMap()

Implementation

Map asMap() {
  Map<String, dynamic> map = {};

  if (faceLivenessBaseUrl != null && certificates == null) {
    throw ArgumentError(
        "You must provide a list of certificates if you want to use the reverse proxy for running FaceLiveness.",
        "certificates");
  }

  map["faceLivenessBaseUrl"] = faceLivenessBaseUrl;
  map["certificates"] = certificates?.map((e) => e).toList();
  map["authenticationBaseUrl"] = authenticationBaseUrl;

  return map;
}