encode method

Object encode()

Implementation

Object encode() {
  return <Object?>[
    position.index,
    type.index,
    deviceId,
  ];
}