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

part 'slot.g.dart';

@JsonSerializable()
class Slot {
  const Slot({
    required this.parent,
    required this.slot,
    required this.type,
  });

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

  final int parent;
  final int slot;
  final String type;

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