fromMap static method

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

Gets a possible PrintJobMediaSize instance from a Map value.

Implementation

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