fromMap static method

Implementation

static PurchaseOrderNoteViewWatcher? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return PurchaseOrderNoteViewWatcher(
    email: readText(source['email']),
    name: readText(source['name']),
    type: readText(source['type']),
  );
}