toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'code'] = this.code;
json[r'name'] = this.name;
if (this.description != null) {
json[r'description'] = this.description;
} else {
json[r'description'] = null;
}
json[r'monster'] = this.monster;
json[r'schedule'] = this.schedule;
if (this.rewards != null) {
json[r'rewards'] = this.rewards;
} else {
json[r'rewards'] = null;
}
json[r'status'] = this.status;
json[r'next_start_at'] = this.nextStartAt.toUtc().toIso8601String();
json[r'participant_count'] = this.participantCount;
if (this.activeInstance != null) {
json[r'active_instance'] = this.activeInstance;
} else {
json[r'active_instance'] = null;
}
if (this.latestInstance != null) {
json[r'latest_instance'] = this.latestInstance;
} else {
json[r'latest_instance'] = null;
}
return json;
}