fromMap static method
Implementation
static PaymentsNote? fromMap(Object? body) {
final source = readRecord(body);
if (source == null) return null;
return PaymentsNote(
attachments: readList<PaymentsNoteAttachment>(
source['attachments'], PaymentsNoteAttachment.fromMap),
content: readText(source['content']),
createdBy: PaymentsNoteCreatedBy.fromMap(source['created_by']),
createdOn: readText(source['created_on']),
group: readAny(source['group']),
href: readText(source['href']),
id: readText(source['id']),
lastUpdatedBy: readAny(source['last_updated_by']),
lastUpdatedOn: readAny(source['last_updated_on']),
object: readText(source['object']),
user: readAny(source['user']),
version: readInteger(source['version']),
watchers: readList<PaymentsNoteWatcher>(
source['watchers'], PaymentsNoteWatcher.fromMap),
);
}