public toRestReleaseModification()

in src/utils/adapter/adapter.ts [271:289]


    public toRestReleaseModification(
        legacyCodePushReleaseInfo: sdkTypes.PackageInfo
    ): adapterTypes.ReleaseModification {
        let releaseModification: adapterTypes.ReleaseModification = {} as adapterTypes.ReleaseModification ;

        if (legacyCodePushReleaseInfo.appVersion) releaseModification.target_binary_range = legacyCodePushReleaseInfo.appVersion;

        if (legacyCodePushReleaseInfo.isDisabled) releaseModification.is_disabled = legacyCodePushReleaseInfo.isDisabled;

        if (legacyCodePushReleaseInfo.isMandatory) releaseModification.is_mandatory = legacyCodePushReleaseInfo.isMandatory;

        if (legacyCodePushReleaseInfo.description) releaseModification.description = legacyCodePushReleaseInfo.description;

        if (legacyCodePushReleaseInfo.rollout) releaseModification.rollout = legacyCodePushReleaseInfo.rollout;

        if (legacyCodePushReleaseInfo.label) releaseModification.label = legacyCodePushReleaseInfo.label;

        return releaseModification;
    }