사용하지 않는 파일 정리 전 백업 (Phase 10 완료 후 상태)
This commit is contained in:
17
lib/data/models/vendor_stats_dto.dart
Normal file
17
lib/data/models/vendor_stats_dto.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user