fromMap static method

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

Gets a possible Printer instance from a Map value.

Implementation

static Printer? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = Printer(
    id: map['id'],
    languageLevel: map['languageLevel'],
    name: map['name'],
    type: map['type'],
  );
  return instance;
}