import 'package:json_annotation/json_annotation.dart';

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

part 'role.g.dart';


@JsonSerializable()
class RoleDescriptionDTO extends StorableDescribabaleDTO {
  final String organizationRef;

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

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

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