DocumentV0.fromJson constructor

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

Implementation

factory DocumentV0.fromJson(Map<String, dynamic> json) {
  assert(json['document'] is Map);

  final document = Map<String, Object>.from(json['document'] as Map);
  final root = NodeV0.fromJson(document);
  return DocumentV0(root: root);
}