import 'package:json_annotation/json_annotation.dart';

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

part 'account.g.dart';


@JsonSerializable()
class AccountDTO extends AccountBaseDTO {
  final String login;
  final String locale;

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

  factory AccountDTO.fromJson(Map<String, dynamic> json) => _$AccountDTOFromJson(json);
  @override
  Map<String, dynamic> toJson() => _$AccountDTOToJson(this);
}