ContentItem.fromJson constructor
Converts the JSON representation of the content item to an instance of ContentItem.
Implementation
factory ContentItem.fromJson(Map<String, dynamic> json) {
final type = vyuh.content.provider.schemaType(json);
return vyuh.content.fromJson<ContentItem>(json) ??
Unknown(
missingSchemaType: type,
description:
'This is due to a missing implementation for the ContentItem.');
}