fromMap static method

Implementation

static AccountCommunicationsEmailAttachment? fromMap(Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return AccountCommunicationsEmailAttachment(
    filePath: readText(source['file_path']),
    name: readText(source['name']),
    path: readText(source['path']),
    size: readInteger(source['size']),
    type: readText(source['type']),
  );
}