fromMap static method

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

Gets a possible PrintJobResolution instance from a Map value.

Implementation

static PrintJobResolution? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = PrintJobResolution(
    horizontalDpi: map['horizontalDpi'],
    id: map['id'],
    label: map['label'],
    verticalDpi: map['verticalDpi'],
  );
  return instance;
}