Convert the object to a Json format.
@override Object toJson() => <Object>[ BitmapDescriptor._fromAssetImage, name, scale, if (size != null) <Object>[size!.width, size!.height] ];