encode method Null safety

Object encode()

Implementation

Object encode() {
  return <Object?>[
    min.encode(),
    max.encode(),
  ];
}