Attributes.fromJson constructor Null safety

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

Implementation

Attributes.fromJson(Map<String, dynamic> json) {
  volume = json['volume'] ?? 'null';
  fileName = json['fileName'] ?? 'null';
  description = json['description'] ?? 'null';
  version = json['version'] ?? 'null';
  createdAt = json['createdAt'] ?? 'null';
  updatedAt = json['updatedAt'] ?? 'null';
}