fromMap static method
Implementation
static PaymentNote? fromMap(Object? body) {
final source = readRecord(body);
if (source == null) return null;
return PaymentNote(
attachments: readList<PaymentNoteAttachment>(
source['attachments'], PaymentNoteAttachment.fromMap),
content: readText(source['content']),
createdBy: PaymentNoteCreatedBy.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']),
payment: PaymentNotePayment.fromMap(source['payment']),
user: readAny(source['user']),
version: readInteger(source['version']),
watchers: readList<PaymentNoteWatcher>(
source['watchers'], PaymentNoteWatcher.fromMap),
);
}