import 'package:json_annotation/json_annotation.dart';

import 'package:pshared/api/responses/base.dart';
import 'package:pshared/api/responses/token.dart';
import 'package:pshared/data/dto/invitation/invitation.dart';

part 'invitations.g.dart';


@JsonSerializable(explicitToJson: true)
class InvitationsResponse extends BaseAuthorizedResponse {
  final List<InvitationDTO> invitations;

  const InvitationsResponse({
    required super.accessToken,
    required this.invitations,
  });

  factory InvitationsResponse.fromJson(Map<String, dynamic> json) => _$InvitationsResponseFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$InvitationsResponseToJson(this);
}
