toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      "enable": enable!,
      "temp": temp!,
      "state": state!,
      "tempInfo": tempInfo!.toJson(),
      "type": type,
    };