mirrored_repositories/flutter_gift_manager/lib/data/http
import 'package:gift_manager/data/http/model/gift_dto.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:equatable/equatable.dart';

part 'gifts_response_dto.g.dart';

@JsonSerializable()
class GiftsResponseDto extends Equatable {
  final List<GiftDto> gifts;

  factory GiftsResponseDto.fromJson(final Map<String, dynamic> json) =>
      _$GiftsResponseDtoFromJson(json);

  const GiftsResponseDto({required this.gifts});

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

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