toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['id'] = id;
data['name'] = name;
data['slug'] = slug;
data['type'] = type;
data['order_by'] = orderBy;
data['has_archives'] = hasArchives;
if (links != null) {
data['_links'] = links!.toJson();
}
return data;
}