IDFlowConfig.fromJson constructor
IDFlowConfig.fromJson(
- Map<String, dynamic> json
)
Implementation
factory IDFlowConfig.fromJson(Map<String, dynamic> json) {
return IDFlowConfig(
locale: IDFlowLocale.fromJson(json['locale']),
entryMode: IDFlowEntryMode.fromJson(json['entryMode']),
cameraSelector: IDFlowCameraSelector.fromJson(json['cameraSelector']),
screenOrientation: IDFlowScreenOrientation.fromJson(
json['screenOrientation'],
),
transformation: IDFlowTransformation.fromJson(json['transformation']),
previewConfig: json['previewConfig'] != null
? IDFlowPreviewConfig.fromJson(
Map<String, dynamic>.from(json['previewConfig']),
)
: null,
documentConfig: json['documentConfig'] != null
? IDFlowDocumentConfig.fromJson(
Map<String, dynamic>.from(json['documentConfig']),
)
: null,
faceConfig: json['faceConfig'] != null
? IDFlowFaceConfig.fromJson(
Map<String, dynamic>.from(json['faceConfig']),
)
: null,
videoConfig: json['videoConfig'] != null
? IDFlowVideoConfig.fromJson(
Map<String, dynamic>.from(json['videoConfig']),
)
: null,
debugEnabled: json['debugEnabled'],
);
}