toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case StreamViewType.newImage:
      return 'NEW_IMAGE';
    case StreamViewType.oldImage:
      return 'OLD_IMAGE';
    case StreamViewType.newAndOldImages:
      return 'NEW_AND_OLD_IMAGES';
    case StreamViewType.keysOnly:
      return 'KEYS_ONLY';
  }
}