toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (id != null) 'id': id!,
      if (ip != null) 'ip': ip!,
      if (state != null) 'state': state!,
      if (zoneId != null) 'zoneId': zoneId!,
    };