You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

35 lines
741 B

/// 连麦卡片模型
class LinkMicCardModel {
final int type;
final int num;
final int? unitSellingPrice;
LinkMicCardModel({
required this.type,
required this.num,
this.unitSellingPrice,
});
factory LinkMicCardModel.fromJson(Map<String, dynamic> json) {
return LinkMicCardModel(
type: json['type'] as int? ?? 0,
num: json['num'] as int? ?? 0,
unitSellingPrice: json['unitSellingPrice'] as int? ?? 0,
);
}
Map<String, dynamic> toJson() {
return {
'type': type,
'num': num,
'unitSellingPrice': unitSellingPrice,
};
}
@override
String toString() {
return 'LinkMicCardModel(type: $type, num: $num, unitSellingPrice: $unitSellingPrice)';
}
}