getErrorCode function

String getErrorCode(
  1. dynamic error
)

Implementation

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