toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final alarms = this.alarms;
  final cpuThreshold = this.cpuThreshold;
  final ignoreMetricsTime = this.ignoreMetricsTime;
  final instanceCount = this.instanceCount;
  final loadThreshold = this.loadThreshold;
  final memoryThreshold = this.memoryThreshold;
  final thresholdsWaitTime = this.thresholdsWaitTime;
  return {
    if (alarms != null) 'Alarms': alarms,
    if (cpuThreshold != null) 'CpuThreshold': cpuThreshold,
    if (ignoreMetricsTime != null) 'IgnoreMetricsTime': ignoreMetricsTime,
    if (instanceCount != null) 'InstanceCount': instanceCount,
    if (loadThreshold != null) 'LoadThreshold': loadThreshold,
    if (memoryThreshold != null) 'MemoryThreshold': memoryThreshold,
    if (thresholdsWaitTime != null) 'ThresholdsWaitTime': thresholdsWaitTime,
  };
}