TransferModel.fromMap constructor

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

Implementation

factory TransferModel.fromMap(Map<String, dynamic> map) {
  return TransferModel(
    id: map['id'],
    createdAt: map['created_at'],
    amountCents: map['amount_cents'],
    amountLocalized: map['amount_localized'],
    receiver: Receiver.fromMap(map['receiver']),
  );
}