ContextView.fromJson constructor
Implementation
factory ContextView.fromJson(Map<String, dynamic> json) {
return ContextView(
id: json['id'] as String? ?? '',
type: json['type'] as String? ?? '',
content: json['content'] as String? ?? '',
asOf: json['asOf'] != null
? DateTime.parse(json['asOf'] as String)
: DateTime.now(),
);
}