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