Implementation
Object encode() {
final Map<Object?, Object?> pigeonMap = <Object?, Object?>{};
pigeonMap['geometry'] = geometry;
pigeonMap['image'] = image;
pigeonMap['iconAnchor'] = iconAnchor?.index;
pigeonMap['iconImage'] = iconImage;
pigeonMap['iconOffset'] = iconOffset;
pigeonMap['iconRotate'] = iconRotate;
pigeonMap['iconSize'] = iconSize;
pigeonMap['symbolSortKey'] = symbolSortKey;
pigeonMap['textAnchor'] = textAnchor?.index;
pigeonMap['textField'] = textField;
pigeonMap['textJustify'] = textJustify?.index;
pigeonMap['textLetterSpacing'] = textLetterSpacing;
pigeonMap['textMaxWidth'] = textMaxWidth;
pigeonMap['textOffset'] = textOffset;
pigeonMap['textRadialOffset'] = textRadialOffset;
pigeonMap['textRotate'] = textRotate;
pigeonMap['textSize'] = textSize;
pigeonMap['textTransform'] = textTransform?.index;
pigeonMap['iconColor'] = iconColor;
pigeonMap['iconHaloBlur'] = iconHaloBlur;
pigeonMap['iconHaloColor'] = iconHaloColor;
pigeonMap['iconHaloWidth'] = iconHaloWidth;
pigeonMap['iconOpacity'] = iconOpacity;
pigeonMap['textColor'] = textColor;
pigeonMap['textHaloBlur'] = textHaloBlur;
pigeonMap['textHaloColor'] = textHaloColor;
pigeonMap['textHaloWidth'] = textHaloWidth;
pigeonMap['textOpacity'] = textOpacity;
return pigeonMap;
}