BaseVerifyEmailResponse.fromJson constructor
Implementation
factory BaseVerifyEmailResponse.fromJson(Map<String, dynamic> json) {
if (json.containsKey('status') && json['status'] == 'OK') {
return BaseVerifyEmailResponse(success: true);
}
return BaseVerifyEmailResponse(
success: false,
errorCode: json['status'] ?? 'SOMETHING_WENT_WRONG',
);
}