version property

String? get version

Expected A2UI protocol version ('1.0' or 'v0.9').

Optional: the catalog itself decides which version a turn emits (see A2uiCatalog.protocolVersion). Passing this asserts at call time that the resolved catalog targets that version.

Implementation

String? get version {
  return _json['version'] as String?;
}
set version (String? value)

Expected A2UI protocol version ('1.0' or 'v0.9').

Optional: the catalog itself decides which version a turn emits (see A2uiCatalog.protocolVersion). Passing this asserts at call time that the resolved catalog targets that version.

Implementation

set version(String? value) {
  if (value == null) {
    _json.remove('version');
  } else {
    _json['version'] = value;
  }
}