encode method

Object encode()

Implementation

Object encode() {
  return <Object?>[
    segmentId,
    endTimeMs,
    startTimeMs,
    category?.index,
    subcategory?.index,
    attributes,
    type?.index,
  ];
}