toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  if (this.capabilities != null) {
    data['capabilities'] = this.capabilities.toJson();
  }
  data['description'] = this.description;
  data['hierarchical'] = this.hierarchical;
  data['viewable'] = this.viewable;
  if (this.labels != null) {
    data['labels'] = this.labels.toJson();
  }
  data['name'] = this.name;
  data['slug'] = this.slug;
  if (this.supports != null) {
    data['supports'] = this.supports.toJson();
  }
  data['taxonomies'] = this.taxonomies;
  data['rest_base'] = this.restBase;
  if (this.lLinks != null) {
    data['_links'] = this.lLinks.toJson();
  }
  return data;
}