import 'package:json_annotation/json_annotation.dart';

import 'package:pshared/data/dto/permissions/data/permissions.dart';
import 'package:pshared/data/dto/permissions/description/description.dart';

part 'access.g.dart';


@JsonSerializable()
class UserAccessDTO {
  final PermissionsDescriptionDTO descriptions;
  final PermissionsDataDTO permissions;

  const UserAccessDTO({
    required this.descriptions,
    required this.permissions,
  });
  
  factory UserAccessDTO.fromJson(Map<String, dynamic> json) => _$UserAccessDTOFromJson(json);
  Map<String, dynamic> toJson() => _$UserAccessDTOToJson(this);  
}

