parent
f6feb831db
commit
4cc56b0622
@ -0,0 +1,18 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'market_statistics_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class MarketStatisticsModel {
|
||||
final int skuTotal;
|
||||
final int settledBrandsNum;
|
||||
final int newProductsTodayNum;
|
||||
factory MarketStatisticsModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$MarketStatisticsModelFromJson(json);
|
||||
|
||||
const MarketStatisticsModel({
|
||||
required this.skuTotal,
|
||||
required this.settledBrandsNum,
|
||||
required this.newProductsTodayNum,
|
||||
});
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'market_statistics_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
MarketStatisticsModel _$MarketStatisticsModelFromJson(
|
||||
Map<String, dynamic> json) =>
|
||||
MarketStatisticsModel(
|
||||
skuTotal: json['skuTotal'] as int,
|
||||
settledBrandsNum: json['settledBrandsNum'] as int,
|
||||
newProductsTodayNum: json['newProductsTodayNum'] as int,
|
||||
);
|
Loading…
Reference in new issue