IDFlowActiveLivenessConfig.fromJson constructor
IDFlowActiveLivenessConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory IDFlowActiveLivenessConfig.fromJson(Map<String, dynamic> json) {
return IDFlowActiveLivenessConfig(
uiVariant: IDFlowActiveLivenessUiVariant.fromJson(json['uiVariant']),
targetDistanceRatio: (json['targetDistanceRatio'] as num?)?.toDouble(),
headAngleLeft: (json['headAngleLeft'] as num?)?.toDouble(),
headAngleRight: (json['headAngleRight'] as num?)?.toDouble(),
headAngleUp: (json['headAngleUp'] as num?)?.toDouble(),
headAngleDown: (json['headAngleDown'] as num?)?.toDouble(),
challengeTimeoutMs: json['challengeTimeoutMs'],
challengeHoldTimeoutMs: json['challengeHoldTimeoutMs'],
microphoneEnabled: json['microphoneEnabled'],
exitConfirmationEnabled: json['exitConfirmationEnabled'],
videoFilePath: json['videoFilePath'],
);
}