Map<String, dynamic> toMap() { return <String, dynamic>{ 'failureThreshold': ?failureThreshold, 'resourcePath': ?resourcePath, 'type': ?type, }; }