IdenfyIdentificationResult.fromJson constructor

IdenfyIdentificationResult.fromJson(
  1. dynamic json
)

Implementation

factory IdenfyIdentificationResult.fromJson(dynamic json) {
  var suspectedStatus = SuspectedIdentificationStatus(
      json['suspectedIdentificationStatus']['autoSuspected'],
      json['suspectedIdentificationStatus']['manualSuspected']);
  return IdenfyIdentificationResult(
      AutoIdentificationStatus.values
          .byName(json['autoIdentificationStatus']),
      ManualIdentificationStatus.values
          .byName(json['manualIdentificationStatus']),
      suspectedStatus);
}