toJson method
Implementation
Map<String, dynamic> toJson() {
final type = this.type;
final failureThreshold = this.failureThreshold;
final resourcePath = this.resourcePath;
return {
'Type': type.toValue(),
if (failureThreshold != null) 'FailureThreshold': failureThreshold,
if (resourcePath != null) 'ResourcePath': resourcePath,
};
}