List<Map<String, Object?>> toMap() { return commands .map((CameraCutoutPathCommand item) => item.toMap()) .toList(); }