Converts this object to something serializable in JSON.
@override Object toJson() => <Object>[_capTypeToJson(type), bitmapDescriptor.toJson(), refWidth];