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.
31 lines
765 B
31 lines
765 B
class MatchmakerRequirement {
|
|
final String? id;
|
|
final int? type;
|
|
final int? liveDurationHours;
|
|
final int? liveConsumptionAmount;
|
|
|
|
MatchmakerRequirement({
|
|
this.id,
|
|
this.type,
|
|
this.liveDurationHours,
|
|
this.liveConsumptionAmount,
|
|
});
|
|
|
|
factory MatchmakerRequirement.fromJson(Map<String, dynamic> json) {
|
|
return MatchmakerRequirement(
|
|
id: json['id'] as String?,
|
|
type: json['type'] as int?,
|
|
liveDurationHours: json['liveDurationHours'] as int?,
|
|
liveConsumptionAmount: json['liveConsumptionAmount'] as int?,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> toJson() {
|
|
return {
|
|
'id': id,
|
|
'type': type,
|
|
'liveDurationHours': liveDurationHours,
|
|
'liveConsumptionAmount': liveConsumptionAmount,
|
|
};
|
|
}
|
|
}
|