value property

String get value

Convert to string value for API requests

Implementation

String get value {
  switch (this) {
    case ImageStyle.natural:
      return 'natural';
    case ImageStyle.vivid:
      return 'vivid';
    case ImageStyle.anime:
      return 'anime';
    case ImageStyle.digitalArt:
      return 'digital-art';
    case ImageStyle.oilPainting:
      return 'oil-painting';
    case ImageStyle.watercolor:
      return 'watercolor';
    case ImageStyle.sketch:
      return 'sketch';
    case ImageStyle.render3d:
      return '3d-render';
    case ImageStyle.pixelArt:
      return 'pixel-art';
    case ImageStyle.abstract:
      return 'abstract';
  }
}