Converts this object to something serializable in JSON.
Object toJson() => <Object?>[bounds?.toJson()];