updateOrganization method

  1. @override
Future<Organization> updateOrganization(
  1. String id, {
  2. String? displayName,
  3. String? description,
  4. String? website,
  5. 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,
  }),
);