toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = Map<String, dynamic>();
if (this.gameIndices != null) {
data['game_indices'] = this.gameIndices!.map((v) => v.toJson()).toList();
}
if (this.names != null) {
data['names'] = this.names!.map((v) => v.toJson()).toList();
}
data['name'] = this.name;
if (this.areas != null) {
data['areas'] = this.areas!.map((v) => v.toJson()).toList();
}
data['id'] = this.id;
if (this.region != null) {
data['region'] = this.region!.toJson();
}
return data;
}