getVersionCheck method

Check if the notes app version is supported by this client

Also returns the supported API version number

Implementation

VersionCheck getVersionCheck(core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data capabilities) {
  final versions = capabilities.capabilities.notesCapabilities?.notes.apiVersion;
  return VersionCheck(
    versions: versions?.map(Version.parse).toBuiltList(),
    minimumVersion: minVersion,
  );
}