25 lines
707 B
Dart
25 lines
707 B
Dart
import 'package:json_annotation/json_annotation.dart';
|
|
import 'package:pshared/data/dto/storable.dart';
|
|
import 'package:pshared/models/resources.dart';
|
|
|
|
part 'policy.g.dart';
|
|
|
|
|
|
@JsonSerializable()
|
|
class PolicyDescriptionDTO extends StorableDTO {
|
|
final List<ResourceType>? resourceTypes;
|
|
final String? organizationRef;
|
|
|
|
const PolicyDescriptionDTO({
|
|
required super.id,
|
|
required super.createdAt,
|
|
required super.updatedAt,
|
|
required this.resourceTypes,
|
|
required this.organizationRef,
|
|
});
|
|
|
|
factory PolicyDescriptionDTO.fromJson(Map<String, dynamic> json) => _$PolicyDescriptionDTOFromJson(json);
|
|
|
|
@override
|
|
Map<String, dynamic> toJson() => _$PolicyDescriptionDTOToJson(this);
|
|
} |