import 'package:comwell_key_app/utils/json.dart';
import 'package:json_annotation/json_annotation.dart';

import 'booking_dto.dart';

part '../../.generated/services/models/bookings_dto.g.dart';

@JsonSerializable()
class BookingsDTO {
  final Iterable<BookingDTO> current;
  final Iterable<BookingDTO> past;
  final Iterable<BookingDTO> cancelled;

  BookingsDTO({
    required this.current,
    required this.past,
    required this.cancelled,
  });

  Json toJson() => _$BookingsDTOToJson(this);

  factory BookingsDTO.fromJson(Json json) => _$BookingsDTOFromJson(json);
}