encode method

Object encode()

Implementation

Object encode() {
  return <Object?>[
    id.index,
    chType.index,
    name,
    num,
  ];
}