toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  final map = <String, dynamic>{};
  if (languageCode != null) map['languageCode'] = languageCode;
  if (fontFamily != null) map['fontFamily'] = fontFamily;
  map['loggingEnabled'] = loggingEnabled;
  map['showCloseButton'] = showCloseButton;
  map['showExitConfirmation'] = showExitConfirmation;
  map['closeOnComplete'] = closeOnComplete;
  if (defaultDocumentCamera != null) {
    map['defaultDocumentCamera'] = defaultDocumentCamera!.toMap();
  }
  if (defaultLivenessCamera != null) {
    map['defaultLivenessCamera'] = defaultLivenessCamera!.toMap();
  }
  map['showDocumentCameraSwitchButton'] = showDocumentCameraSwitchButton;
  map['showLivenessCameraSwitchButton'] = showLivenessCameraSwitchButton;
  return map;
}