Relationship.fromJson constructor Null safety
Implementation
Relationship.fromJson(Map<String, dynamic> json) {
id = json['id'] ?? '';
type = json['type'] ?? '';
related = json['related'] ?? '';
attributes = json['attributes'] ?? {};
}
Relationship.fromJson(Map<String, dynamic> json) {
id = json['id'] ?? '';
type = json['type'] ?? '';
related = json['related'] ?? '';
attributes = json['attributes'] ?? {};
}