getVersionCheck method

Check if the tables app version is supported by this client.

Also returns the supported APP version.

Implementation

VersionCheck getVersionCheck(core.OcsGetCapabilitiesResponseApplicationJson_Ocs_Data capabilities) {
  final version = capabilities.capabilities.tablesCapabilities?.tables.version;

  return VersionCheck(
    versions: version != null ? BuiltList([Version.parse(version)]) : null,
    minimumVersion: minAppVersion,
  );
}