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/recipient/recipient.dart';

part 'recipient.g.dart';


@JsonSerializable(explicitToJson: true)
class RecipientResponse extends BaseAuthorizedResponse {
  final List<RecipientDTO> recipients;

  const RecipientResponse({required super.accessToken, required this.recipients});

  factory RecipientResponse.fromJson(Map<String, dynamic> json) => _$RecipientResponseFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$RecipientResponseToJson(this);
}