import 'package:json_annotation/json_annotation.dart';

part 'product_brand_model.g.dart';
@JsonSerializable()
class ProductBrandModel {
  @JsonKey(name: 'brand_id')
  final String brandId;
  @JsonKey(name: 'brand_name')
  final String? brandName;
  final String? commision;
  final String? logo;
  @JsonKey(name: 'brand_url')
  final String? brandUrl;
  @JsonKey(name: 'category_name')
  final String? categoryName;
  final String? direction;

  ProductBrandModel({
    required this.brandId,
    this.brandName,
    this.commision,
    this.logo,
    this.brandUrl,
    this.categoryName,
    this.direction,
  });

  factory ProductBrandModel.fromJson(Map<String, dynamic> json) => _$ProductBrandModelFromJson(json);
  Map<String, dynamic> toJson() => _$ProductBrandModelToJson(this);
}
