static TIMError? fromInt(int code) { for (var enumValue in TIMError.values) { if (enumValue.code == code) return enumValue; } return null; }