import 'package:json_annotation/json_annotation.dart';

part 'brand_category_model.g.dart'; // Nếu dùng build_runner
@JsonSerializable()
class BrandCategoryModel {
  final String? id;
  final String? subscribed;
  @JsonKey(name: 'category_code')
  final String? categoryCode;
  @JsonKey(name: 'category_name')
  final String? categoryName;
  @JsonKey(name: 'image_url')
  final String? imageUrl;
  const BrandCategoryModel({
    this.id,
    this.subscribed,
    this.categoryCode,
    this.categoryName,
    this.imageUrl,
  });

  factory BrandCategoryModel.fromJson(Map<String, dynamic> json) => _$BrandCategoryModelFromJson(json);
  Map<String, dynamic> toJson() => _$BrandCategoryModelToJson(this);
}
