import 'package:json_annotation/json_annotation.dart';

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

part 'bound.g.dart';


@JsonSerializable()
class PermissionBoundDTO extends StorableDTO {
  final String permissionRef;
  final String organizationRef;

  const PermissionBoundDTO({
    required super.id,
    required super.createdAt,
    required super.updatedAt,
    required this.permissionRef,
    required this.organizationRef,
  });

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

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