static bool canParse(Object? obj) { if (obj is! Map<String, dynamic>) { return false; } if (!Message.canParse(obj['error'])) { return false; } return true; }