FaceVideoOptions.fromJson constructor

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

Implementation

factory FaceVideoOptions.fromJson(Map<String, dynamic> json) {
  rejectUnknownKeys('FaceVideoOptions', json, const {
    'showIntro',
    'recordAudio',
    'showConfirmation',
  });
  return FaceVideoOptions(
    showIntro: json['showIntro'] as bool? ?? true,
    recordAudio: json['recordAudio'] as bool? ?? false,
    showConfirmation: json['showConfirmation'] as bool? ?? true,
  );
}