toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data =  Map<String, dynamic>();
  data['id'] = this.id;
  data['name'] = this.name;
  if (this.berries != null) {
    data['berries'] = this.berries!.map((v) => v.toJson()).toList();
  }
  if (this.contestType != null) {
    data['contest_type'] = this.contestType!.toJson();
  }
  if (this.names != null) {
    data['names'] = this.names!.map((v) => v.toJson()).toList();
  }
  return data;
}