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