import 'package:freezed_annotation/freezed_annotation.dart';

part 'vendor_stats_dto.freezed.dart';
part 'vendor_stats_dto.g.dart';

@freezed
class VendorStatsDto with _$VendorStatsDto {
  const factory VendorStatsDto({
    @JsonKey(name: 'total_vendors') required int totalVendors,
    @JsonKey(name: 'active_vendors') required int activeVendors,
    @JsonKey(name: 'inactive_vendors') required int inactiveVendors,
    @JsonKey(name: 'deleted_vendors') required int deletedVendors,
  }) = _VendorStatsDto;

  factory VendorStatsDto.fromJson(Map<String, dynamic> json) =>
      _$VendorStatsDtoFromJson(json);
}