RequestWithdrawResponseMessage.fromMap constructor Null safety

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

Implementation

factory RequestWithdrawResponseMessage.fromMap(Map<String, dynamic> map) {
  return RequestWithdrawResponseMessage(
    operationId: map['id'],
    status: map['status'],
    createdAt: DateTime.fromMillisecondsSinceEpoch(map['created_at']),
    updatedAt: DateTime.fromMillisecondsSinceEpoch(map['updated_at']),
    reference: map['reference'],
    amount: map['amount'],
    accountName: map['account_name'],
    accountId: map['account_id'],
    bankInfo: BankInfo.fromMap(map['bank_address']),
  );
}