fromMap static method

InvoiceLineRead? fromMap(
  1. Object? body
)

Implementation

static InvoiceLineRead? fromMap(Object? body) {
  final source = readRecord(body, envelopeKey: 'invoice');
  if (source == null) return null;
  return InvoiceLineRead(
    object: readText(source['object']),
    line: InvoiceLine.fromMap(source['line']),
  );
}