toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final behaviorName = this.behaviorName;
  final securityProfileName = this.securityProfileName;
  final violationIds = this.violationIds;
  return {
    if (behaviorName != null) 'behaviorName': behaviorName,
    if (securityProfileName != null)
      'securityProfileName': securityProfileName,
    if (violationIds != null) 'violationIds': violationIds,
  };
}