toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() => <String, dynamic>{
      'dartType': runtimeType.toString(),
      'shape': shape?.toMap(),
      'position': convertVector3ToMap(position?.value),
      'scale': convertVector3ToMap(scale?.value),
      'rotation': convertVector4ToMap(rotation?.value),
      'name': name,
      'image': image?.toMap(),
      'children':
          this.children?.map((arCoreNode) => arCoreNode.toMap()).toList(),
    }..removeWhere((String k, dynamic v) => v == null);