createTheme method
Creates a Theme. You can optionally specify an Id for the theme, if not provided one will be generated.
@param {String} themeId (Optional) The Id for the theme. If not provided a secure random UUID will be generated. @param {ThemeRequest} request The request object that contains all the information used to create the theme. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<ThemeResponse, Errors>> createTheme(
String themeId, ThemeRequest request) {
return _start<ThemeResponse, Errors>()
.withUri('/api/theme')
.withUriSegment(themeId)
.withJSONBody(request)
.withMethod('POST')
.withResponseHandler(
defaultResponseHandlerBuilder((d) => ThemeResponse.fromJson(d)))
.go();
}