encode method Null safety

Object encode()

Implementation

Object encode() {
  return <Object?>[
    first,
    second,
  ];
}