Convert the object to a Json format.
@override Object toJson() => <Object>[ 'bitmapGlyph', <String, Object>{'bitmap': bitmap.toJson()}, ];