Hazem_ELgohary
Committed by David PHAM-VAN

add toMap

@@ -72,4 +72,14 @@ class Printer { @@ -72,4 +72,14 @@ class Printer {
72 comment:$comment 72 comment:$comment
73 isDefault:$isDefault 73 isDefault:$isDefault
74 isAvailable: $isAvailable'''; 74 isAvailable: $isAvailable''';
  75 +
  76 + Map<String, Object?> toMap() => {
  77 + 'url': url,
  78 + 'name': name,
  79 + 'model': model,
  80 + 'location': location,
  81 + 'comment': comment,
  82 + 'default': isDefault,
  83 + 'available': isAvailable,
  84 + };
75 } 85 }