StonePrinter.fromMap constructor

StonePrinter.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory StonePrinter.fromMap(Map<String, dynamic> map) {
  return StonePrinter(title: map['key'] as String, description: map['value'] as String, printerType: PrinterType.values.firstWhere((element) => element.name == map['type'] as String), imageBase64: map['fileBase64'] != null ? map['fileBase64'] as String : null);
}