toMap method

Map<String, dynamic> toMap()

Converts to Map

Implementation

Map<String, dynamic> toMap() {
  return {'isConnected': connectionState.toBool(), 'isPaperOut': paperState.isPaperOut(), 'isPaused': pauseState.isPaused(), 'isHeadOpen': headState.isOpen(), 'temperature': temperature, 'error': errorMessage};
}