IDFlowDocumentConfig.fromJson constructor

IDFlowDocumentConfig.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IDFlowDocumentConfig.fromJson(Map<String, dynamic> json) {
  return IDFlowDocumentConfig(
    uiVariant: IDFlowDocumentUiVariant.fromJson(json['uiVariant']),
    isResident: json['isResident'],
    detectDocumentDuringSelfie: json['detectDocumentDuringSelfie'],
    countdownEnabled: json['countdownEnabled'],
    flashlightEnabled: json['flashlightEnabled'],
    instructionEnabled: json['instructionEnabled'],
    documentEditEnabled: json['documentEditEnabled'],
  );
}