encode method Null safety

Object encode()

Implementation

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