fromMap static method

OrderPaymentMethod? fromMap(
  1. Object? body
)

Implementation

static OrderPaymentMethod? fromMap(Object? body) {
  final source = readRecord(body, envelopeKey: 'order');
  if (source == null) return null;
  return OrderPaymentMethod(
    paymentMethod:
        OrderPaymentMethodPaymentMethod.fromMap(source['payment_method']),
  );
}