toJson method

Map<String, dynamic> toJson()

Implementation

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