toMap method
Implementation
Map<String, Object?> toMap() => <String, Object?>{
"id": id,
"type": type.name,
"source": source?.toMap(),
"iosSource": iosSource?.toMap(),
"anchorId": anchorId,
"parentId": parentId,
"position": position.toList(),
"rotation": rotation.toList(),
"scale": scale.toList(),
"width": width,
"height": height,
"depth": depth,
"radius": radius,
"material": material.toMap(),
"billboard": billboard.name,
"visible": visible,
"castShadow": castShadow,
"hittable": hittable,
"animation": animation?.toMap(),
"video": video.toMap(),
"fitSize": fitSize,
"pivot": pivot.name,
};