toJson method Null safety

Object toJson()

Converts this object to something serializable in JSON.

Implementation

Object toJson() {
  return <Object>[southwest.toJson(), northeast.toJson()];
}