AuthenticateResponse.fromJson constructor Null safety
Implementation
factory AuthenticateResponse.fromJson(Map<String, dynamic> json) {
if(json['result'] != null){
return AuthenticateResponse(
base64: '',
status: json['result'],
isLiveness: json['result'],
);
}else{
return AuthenticateResponse(
base64: json['base64'],
status: json['status'],
isLiveness: json['isLiveness'],
);
}
}