fromMap static method

CustomPaperInfo? fromMap(
  1. Map? map
)

Implementation

static CustomPaperInfo? fromMap(Map<dynamic, dynamic>? map) {
  if (map == null) {
    return null;
  }

  return CustomPaperInfo._internal(
      Model.fromMap(map["printerModel"]),
      PaperKind.fromMap(map["paperKind"]),
      Unit.fromMap(map["unit"]),
      map["tapeWidth"],
      map["tapeLength"],
      map["rightMargin"],
      map["leftMargin"],
      map["topMargin"],
      map["bottomMargin"],
      map["labelPitch"],
      map["markPosition"],
      map["markHeight"]);
}