CompleteAgeVerificationResponse.fromJson constructor

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

Implementation

factory CompleteAgeVerificationResponse.fromJson(Map<String, dynamic> json) {
  return CompleteAgeVerificationResponse(
    verification: json['verification'],
    status: LivenessStatus.values.firstWhere(
          (e) => e.toString().split('.').last == json['status'],
      orElse: () => LivenessStatus.failed,
    ),
  );
}