toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['code'] = this.code;
data['type'] = this.type;
if (this.links != null) {
data['_links'] = this.links!.toJson();
}
return data;
}