ContentItem.fromJson constructor

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

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.');
}