FindingView class

Constructors

FindingView({int? createdAt, String? fingerprint, String? id, int? line, String? path, String? preview, String? ruleId, String? ruleName, String? scanId, String? severity})
Returns a new FindingView instance.

Properties

createdAt ↔ int?
CreatedAt is when the finding was recorded, in Unix milliseconds.
getter/setter pair
fingerprint ↔ String?
Fingerprint is the SHA-256 of the raw secret. It is what makes the same secret recognisable across scans and after rotation without the secret ever being written down.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID addresses this finding.
getter/setter pair
line ↔ int?
Line is where in that file.
getter/setter pair
path ↔ String?
Path is the file the secret was found in.
getter/setter pair
preview ↔ String?
Preview is the secret MASKED — first and last characters kept, the middle starred — so a reviewer can recognise it without it being disclosed.
getter/setter pair
ruleId ↔ String?
RuleID is the detection rule that fired.
getter/setter pair
ruleName ↔ String?
RuleName is that rule's human name.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scanId ↔ String?
ScanID is the scan that produced it.
getter/setter pair
severity ↔ String?
Severity ranks the finding: critical, high, medium or low.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → FindingView?
Returns a new FindingView instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<FindingView>
mapFromJson(dynamic json) → Map<String, FindingView>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<FindingView>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.