getMetadataSchema method

  1. @override
Future<MetadataSchema> getMetadataSchema(
  1. GetMetadataSchemaRequest request
)
override

Retrieves a specific MetadataSchema.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<MetadataSchema> getMetadataSchema(
  GetMetadataSchemaRequest request,
) async {
  if (isClosed) throw StateError('Service is closed');

  if (_getMetadataSchema case final getMetadataSchema?) {
    return getMetadataSchema(request);
  }
  throw UnsupportedError('getMetadataSchema');
}