Items.fromMap constructor

Items.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Items.fromMap(Map<String, dynamic> map) {
  return Items(
    id: map['id'],
    description: map['description'],
    scheduledDate: map['scheduled_date'],
    invoiceId: map['invoice_id'],
    customerRef: map['customer_ref'],
    total: map['total'],
    taxes: map['taxes'],
    clientShare: map['client_share'],
    commission: map['commission'],
    numberOfInstallments: map['number_of_installments'],
    installment: map['installment'],
  );
}