fromMap static method

UsageUpdated? fromMap(
  1. Object? body
)

Implementation

static UsageUpdated? fromMap(Object? body) {
  final source = readRecord(body, envelopeKey: 'usage');
  if (source == null) return null;
  return UsageUpdated(
    href: readText(source['href']),
    id: readText(source['id']),
    note: readText(source['note']),
    object: readText(source['object']),
    status: readText(source['status']),
  );
}