MLCustomInteractiveLivenessDetectionSetting.fromMap constructor
MLCustomInteractiveLivenessDetectionSetting.fromMap(
- Map<String, dynamic> json
)
Implementation
factory MLCustomInteractiveLivenessDetectionSetting.fromMap(
Map<String, dynamic> json) {
return MLCustomInteractiveLivenessDetectionSetting(
action: json['action'] == null
? null
: MlBodyActions.fromJson(json['action']),
detectionTimeOut: json['detectionTimeOut'],
cameraFrame: Rect.fromJson(json['cameraFrame']),
faceFrame: Rect.fromJson(json['faceFrame']),
textMargin: json['textMargin'],
textOptions: json['textOptions'] == null
? null
: TextOptions.fromJson(json['textOptions']),
title: json['title'],
showStatusCodes: json['showStatusCodes'],
statusCodes: Map<int, String>.from(json['statusCodes']),
);
}