KDTree.fromJson constructor Null safety

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

Implementation

KDTree.fromJson(Map<String, dynamic> json)
    : _dimensions = List.from(json['dim']) {
  if (json['root'] != null) {
    _root = Node.fromJson(json['root']);
  }
}