• Serializes an ArcGIS JS API Layer to JSON.

    Parameters

    • layer: Layer

      The layer to serialize.

    Returns LayerJson