getVersionCheck method

Check if the core/Server version is supported by this client

Also returns the minimum supported version

Implementation

VersionCheck getVersionCheck(core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data capabilities) {
  final version = Version(
    capabilities.version.major,
    capabilities.version.minor,
    capabilities.version.micro,
  );
  return VersionCheck(
    versions: [version],
    minimumVersion: minVersion,
    maximumMajor: maxMajor,
  );
}