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