mirrored_repositories/espresso-cash-public/packages/solana/lib/src/rpc/dto
import 'package:json_annotation/json_annotation.dart';

part 'spl_token_transfer_info.g.dart';

/// Information about a [spl token] transfer
///
/// [spl token]: https://spl.solana.com/token
@JsonSerializable()
class SplTokenTransferInfo {
  const SplTokenTransferInfo({
    required this.amount,
    required this.source,
    required this.destination,
  });

  factory SplTokenTransferInfo.fromJson(Map<String, dynamic> json) =>
      _$SplTokenTransferInfoFromJson(json);

  final String amount;
  final String source;
  final String destination;

  Map<String, dynamic> toJson() => _$SplTokenTransferInfoToJson(this);
}
