Convert the object to a Json format.
@override Object toJson() => <Object>[ BitmapDescriptor._fromAsset, name, if (package != null) package! ];