character_custom_update_request.dart 831 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import 'package:json_annotation/json_annotation.dart';
  2. import '../../../base/app_base_request.dart';
  3. part 'character_custom_update_request.g.dart';
  4. @JsonSerializable()
  5. class CharacterCustomUpdateRequest extends AppBaseRequest {
  6. @JsonKey(name: "id")
  7. String id;
  8. @JsonKey(name: "name")
  9. String? name;
  10. @JsonKey(name: "birthday")
  11. String? birthday;
  12. @JsonKey(name: "imageUrl")
  13. String? imageUrl;
  14. @JsonKey(name: "gender")
  15. int? gender;
  16. @JsonKey(name: "hobbies")
  17. List<String>? hobbies;
  18. @JsonKey(name: "characters")
  19. List<String>? characters;
  20. CharacterCustomUpdateRequest({
  21. required this.id,
  22. this.name,
  23. this.birthday,
  24. this.imageUrl,
  25. this.gender,
  26. this.hobbies,
  27. this.characters,
  28. });
  29. @override
  30. Map<String, dynamic> toJson() => _$CharacterCustomUpdateRequestToJson(this);
  31. }