Relationships.fromJson constructor Null safety

Relationships.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Relationships.fromJson(Map<String, dynamic> json) {
  id = json['id'] ?? '';
  type = json['type'] ?? '';
}