import 'package:json_annotation/json_annotation.dart';

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

part 'describable.g.dart';


@JsonSerializable()
class StorableDescribabaleDTO extends StorableDTO {
  final String name;
  final String? description;

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

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

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