Relationships.formJson constructor Null safety

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

Implementation

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