toJson method
Der Eintrag in der Form des Vertrags (printers[]).
Implementation
Map<String, Object?> toJson() => {
'id': id,
'manufacturer': manufacturer,
'model': model,
'matchNames': matchNames,
'paperSizes': [for (final p in paperSizes) p.value],
'nativeCharsPerLine': nativeCharsPerLine,
'values': values.toJson(),
'approval': approval.toJson(),
};