StonePrinterParams.fromMap constructor

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

Implementation

factory StonePrinterParams.fromMap(Map<String, dynamic> map) {
  return StonePrinterParams(
    printers: List<StonePrinter>.from(
      (map['printers'] as List<int>).map<StonePrinter>(
        (x) => StonePrinter.fromMap(x as Map<String, dynamic>),
      ),
    ),
  );
}