toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'type'] = this.type;
json[r'attributes'] = this.attributes;
if (this.relationships != null) {
json[r'relationships'] = this.relationships;
} else {
json[r'relationships'] = null;
}
return json;
}