TransferReceivedInfo.fromMap constructor

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

Implementation

factory TransferReceivedInfo.fromMap(Map<String, dynamic> map) {
  return TransferReceivedInfo(
    amountInCents: map['amount_cents'],
    amountLocalized: map['amount_localized'],
    createdAt: DateTime.fromMillisecondsSinceEpoch(map['created_at']),
    transferId: map['sender'],
    sender: AccountInfo.fromMap(map['sender']),
  );
}