import 'package:json_annotation/json_annotation.dart';

import 'package:pshared/data/dto/storable/describable.dart';
import 'package:pshared/data/dto/date_time.dart';
import 'package:pshared/models/resources.dart';

part 'policy.g.dart';


@JsonSerializable()
class PolicyDescriptionDTO extends StorableDescribabaleDTO {
  final List<ResourceType>? resourceTypes;
  final String? organizationRef;

  const PolicyDescriptionDTO({
    required super.id,
    required super.createdAt,
    required super.updatedAt,
    required super.name,
    required super.description,
    required this.resourceTypes,
    required this.organizationRef,
  });

  factory PolicyDescriptionDTO.fromJson(Map<String, dynamic> json) => _$PolicyDescriptionDTOFromJson(json);

  @override
  Map<String, dynamic> toJson() => _$PolicyDescriptionDTOToJson(this);  
}