WithdrawModel.fromMap constructor

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

Implementation

factory WithdrawModel.fromMap(Map<String, dynamic> map) {
  return WithdrawModel(
    id: map['id'],
    accountId: map['account_id'],
    amount: map['amount'],
    bank: map['bank'],
    bankAgency: map['bank_ag'],
    accountType: map['account_type'],
    bankAccountNumber: map['bank_cc'],
    createdAt: map['created_at'],
    feedback: map['feedback'],
    status: map['status'],
    updatedAt: map['updated_at'],
  );
}