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();
  }
  data['name'] = this.name;
  data['id'] = this.id;
  data['order'] = this.order;
  return data;
}