Relationship.fromJson constructor Null safety

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

Implementation

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