package com.blackduck.integration.detectable.detectables.cargo.data;

import java.util.List;
import java.util.Optional;

import org.jetbrains.annotations.Nullable;

import com.google.gson.annotations.SerializedName;

public class CargoLockData {
    @Nullable
    @SerializedName("package")
    private final List<CargoLockPackageData> packages;

    public CargoLockData(@Nullable List<CargoLockPackageData> packages) {this.packages = packages;}

    public Optional<List<CargoLockPackageData>> getPackages() {
        return Optional.ofNullable(packages);
    }
}
