import 'package:json_annotation/json_annotation.dart';
import 'package:krow/core/data/models/role_kit.dart';
import 'package:krow/core/data/models/skill_category.dart';

part 'skill.g.dart';

@JsonSerializable(fieldRename: FieldRename.snake)
class Skill {
  final String id;
  final String name;
  final String? slug;
  final double ?price;
  final List<RoleKit>? uniforms;
  final List<RoleKit>? equipments;
  final SkillCategory? category;

  Skill({
    required this.id,
    required this.name,
    required this.slug,
    required this.price,
    required this.uniforms,
    required this.equipments,
    this.category,
  });

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

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