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(
      EnumTransform.valueOf(
          AutoIdentificationStatus.values, json['autoIdentificationStatus']),
      EnumTransform.valueOf(ManualIdentificationStatus.values,
          json['manualIdentificationStatus']),
      suspectedStatus);
}