import 'package:json_annotation/json_annotation.dart';

import '../../../base/app_base_request.dart';

part 'character_custom_update_request.g.dart';

@JsonSerializable()
class CharacterCustomUpdateRequest extends AppBaseRequest {
  @JsonKey(name: "id")
  String id;

  @JsonKey(name: "name")
  String? name;

  @JsonKey(name: "birthday")
  String? birthday;

  @JsonKey(name: "imageUrl")
  String? imageUrl;

  @JsonKey(name: "gender")
  int? gender;

  @JsonKey(name: "hobbies")
  List<String>? hobbies;

  @JsonKey(name: "characters")
  List<String>? characters;

  CharacterCustomUpdateRequest({
    required this.id,
    this.name,
    this.birthday,
    this.imageUrl,
    this.gender,
    this.hobbies,
    this.characters,
  });

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