encode method

String? encode()

Implementation

String? encode() {
  switch (this) {
    case CollectionKind.CAROUSEL:
      return 'CAROUSEL';
    case CollectionKind.SCROLL:
      return 'SCROLL';
    case CollectionKind.GRID:
      return 'GRID';
    case CollectionKind.UNKNOWN:
      return null;
  }
}