toJson method

Map<String, dynamic> toJson()

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,
  };
}