Destination.fromMap constructor Null safety

Destination.fromMap(
  1. Map map
)

Implementation

Destination.fromMap(Map map){
  referenceNumber = map['ReferenceNumber'] ?? '';
  accountNumber = map['AccountNumber'] ?? '';
  mobileNumber = map['MobileNumber'] ?? '';
  phoneNumber = map['PhoneNumber'] ?? '';
  bankCode = map['BankCode'] ?? '';
  amount = map['Amount']?.toDouble();
  transactionCurrency = map['TransactionCurrency'] ?? '';
  narration = map['Narration'] ?? '';
  transactionID = map['TransactionID'] ?? '';
  responseCode = map['ResponseCode'] ?? '';
  responseDescription = map['ResponseDescription'] ?? '';
}