import 'package:json_annotation/json_annotation.dart';

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

part 'base.g.dart';


@JsonSerializable()
class AccountBaseDTO extends StorableDTO {
  final String name;
  final String lastName;
  final String? description;
  final String? avatarUrl;

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

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

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