toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'url': url,
'violationType': violationType.toJson(),
if (httpStatusCode != null) 'httpStatusCode': httpStatusCode,
if (packageName != null) 'packageName': packageName,
if (signature != null) 'signature': signature,
};
}