updateOrganization method
Future<Organization>
updateOrganization(
- String id, {
- String? displayName,
- String? description,
- String? website,
- Map<
String, String> ? metadata,
override
Updates the mutable fields of the organization with id.
Throws OrganizationNotFoundException if it does not exist. name cannot
be changed — it is a routing key; see Organization.
Implementation
@override
Future<Organization> updateOrganization(
String id, {
String? displayName,
String? description,
String? website,
Map<String, String>? metadata,
}) async => Organization.fromJson(
await _result(StoreProtocol.organizationUpdate, {
'id': id,
'displayName': ?displayName,
'description': ?description,
'website': ?website,
'metadata': ?metadata,
}),
);