toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['is_main_series'] = this.isMainSeries;
if (this.pokemonEntries != null) {
data['pokemon_entries'] =
this.pokemonEntries!.map((v) => v.toJson()).toList();
}
if (this.names != null) {
data['names'] = this.names!.map((v) => v.toJson()).toList();
}
if (this.versionGroups != null) {
data['version_groups'] = [];
}
data['name'] = this.name;
data['id'] = this.id;
data['region'] = this.region;
if (this.descriptions != null) {
data['descriptions'] = this.descriptions!.map((v) => v.toJson()).toList();
}
return data;
}