toStreamViewType method

StreamViewType toStreamViewType()

Implementation

StreamViewType toStreamViewType() {
  switch (this) {
    case 'NEW_IMAGE':
      return StreamViewType.newImage;
    case 'OLD_IMAGE':
      return StreamViewType.oldImage;
    case 'NEW_AND_OLD_IMAGES':
      return StreamViewType.newAndOldImages;
    case 'KEYS_ONLY':
      return StreamViewType.keysOnly;
  }
  throw Exception('$this is not known in enum StreamViewType');
}