toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "ipAddress": address,
      "name": name,
      "connected": connected,
      "isWifi": isWifi,
      "status": status,
      "color": color
    };