mirrored_repositories/MinecraftCubeDesktop/packages/vanilla_server_repository/lib/src
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:vanilla_server_repository/vanilla_server_repository.dart';

part 'vanilla_server_info.g.dart';

@JsonSerializable()
class VanillaServerInfo extends Equatable {
  const VanillaServerInfo({
    required this.downloads,
  });

  final VanillaServerDownloadsInfo downloads;

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

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

  @override
  List<Object> get props => [downloads];
}
