WebLicenseInventory.fromJson constructor
Implementation
factory WebLicenseInventory.fromJson(Map<String, dynamic> json) {
if (json['schema'] != 1) {
throw FormatException('unknown inventory schema ${json['schema']}');
}
return WebLicenseInventory(
fileCount: json['file_count'] as int,
components: (json['components'] as List<dynamic>)
.cast<Map<String, dynamic>>()
.map(WebLicenseComponent.fromJson)
.toList(),
);
}