toJson method
Implementation
Map<String, dynamic> toJson() {
final enabled = this.enabled;
final level = this.level;
final roleArn = this.roleArn;
final detectorDebugOptions = this.detectorDebugOptions;
return {
'enabled': enabled,
'level': level.toValue(),
'roleArn': roleArn,
if (detectorDebugOptions != null)
'detectorDebugOptions': detectorDebugOptions,
};
}