fromMap static method
Implementation
static NoteAttachment? fromMap(Object? body) {
final source = readRecord(body, envelopeKey: 'note_attachment');
if (source == null) return null;
return NoteAttachment(
base64: readText(source['base64']),
id: readText(source['id']),
name: readText(source['name']),
object: readText(source['object']),
size: readInteger(source['size']),
);
}