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

part 'organization.g.dart';


@JsonSerializable(explicitToJson: true)
class OrganizationResponse extends BaseAuthorizedResponse {
  final List<OrganizationDTO> organizations;

  const OrganizationResponse({required super.accessToken, required this.organizations});

  factory OrganizationResponse.fromJson(Map<String, dynamic> json) => _$OrganizationResponseFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$OrganizationResponseToJson(this);
}