fromMap static method

Implementation

static SettingsGeneralSettingsTransactionDefaultAccountingCodes? fromMap(
    Object? body) {
  final source = readRecord(body);
  if (source == null) return null;
  return SettingsGeneralSettingsTransactionDefaultAccountingCodes(
    accountPayable: readText(source['account_payable']),
    accountReceivable: readText(source['account_receivable']),
    cashAndCashEquivalent: readText(source['cash_and_cash_equivalent']),
    costOfGoodsSold: readText(source['cost_of_goods_sold']),
    creditNotePayable: readText(source['credit_note_payable']),
    deduction: readText(source['deduction']),
    eventCharge: readText(source['event_charge']),
    inventory: readText(source['inventory']),
    paymentSurcharge: readText(source['payment_surcharge']),
    rounding: readText(source['rounding']),
    salesRevenue: readText(source['sales_revenue']),
    tax: readText(source['tax']),
  );
}