ExceptionPathSegment.fromMap(Map<String, Object?> obj) : names = (obj['names'] as List).map((item) => item as String).toList(), negate = obj['negate'] as bool?;