toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final alarms = this.alarms;
  final enabled = this.enabled;
  final ignorePollAlarmFailure = this.ignorePollAlarmFailure;
  return {
    if (alarms != null) 'alarms': alarms,
    if (enabled != null) 'enabled': enabled,
    if (ignorePollAlarmFailure != null)
      'ignorePollAlarmFailure': ignorePollAlarmFailure,
  };
}