ReserveTransaction.fromJson constructor

ReserveTransaction.fromJson(
  1. Object? json
)

Implementation

factory ReserveTransaction.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ReserveTransaction(
    amount: (map['amount'] as num).toInt(),
    currency: (map['currency'] as String),
    description:
        map['description'] == null ? null : (map['description'] as String),
    id: (map['id'] as String),
  );
}