mirrored_repositories/flutter_gift_manager/lib/data/http
import 'package:equatable/equatable.dart';
import 'package:json_annotation/json_annotation.dart';

part 'create_account_request_dto.g.dart';

@JsonSerializable ()
class CreateAccountRequestDto extends Equatable {

  final String email;
  final String password;
  final String name;
  final String avatarUrl;


  const CreateAccountRequestDto({
    required this.email,
    required this.password,
    required this.name,
    required this.avatarUrl,
  });

  factory CreateAccountRequestDto.fromJson (final Map<String, dynamic> json) =>
      _$CreateAccountRequestDtoFromJson(json);

  Map<String, dynamic> toJson() => _$CreateAccountRequestDtoToJson(this);

  @override
  List<Object?> get props => [email, password, name, avatarUrl];

}