Map<String, dynamic> toMap() => { 'density': density, 'speed': speed, 'paperWidth': paperWidth, 'paperHeight': paperHeight };