Tags.fromJson constructor Null safety

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

Implementation

Tags.fromJson(Map<String, dynamic> json) {
  id = json['id'] ?? '';
  type = json['type'] ?? '';
  if (json['attributes'] != null) {
    attributes = TagAttributes.fromJson(json['attributes']);
  }
}