toJson method Null safety
Implementation
Map<String, dynamic> toJson() => {
'id': id,
'type': type,
'attributes': attributes.toJson(),
'relationships': relationships.map((e) => e.toJson()).toString(),
};
Map<String, dynamic> toJson() => {
'id': id,
'type': type,
'attributes': attributes.toJson(),
'relationships': relationships.map((e) => e.toJson()).toString(),
};