getErrorCode function
Implementation
String getErrorCode(dynamic error) {
String? code;
if (error is JsObject) {
code = error["code"]?.toString();
}
return code ?? PassageErrorCode.unknkown;
}
String getErrorCode(dynamic error) {
String? code;
if (error is JsObject) {
code = error["code"]?.toString();
}
return code ?? PassageErrorCode.unknkown;
}