deserialize method

  1. @override
DocumentNode? deserialize(
  1. Map<String, dynamic> map
)
override

Deserialization

  • map For data formats, see serialize note description. 有关数据格式,请参阅 serialize 注释说明。 @return Document node of type T currently. 当前类型为 T 的文档节点。

Implementation

@override
DocumentNode? deserialize(Map<String, dynamic> map) {
  var type = map[keyNodeType];
  if (T.toString() == type) {
    return deserializeNode(map[keyNodeInfo]);
  }
  return null;
}