Map<String, Object> toJson() => {'device': device.toJson(), 'paperSizeNeedsCheck': paperSizeNeedsCheck};