Class Image

A class representing image link data within the map.

Hierarchy

  • default
    • Image

Properties

Accessors

Methods

Properties

id: string

identity of the map object

Accessors

  • get name(): undefined | string
  • Gets the name of the image.

    Returns undefined | string

    The name of the image.

  • get url(): undefined | string
  • Gets the url of the image.

    Returns undefined | string

    The url of the image.

Methods

  • Serializes the image data to JSON.

    Returns {
        id: string;
        name: undefined | string;
        url: undefined | string;
    }

    An object representing the image.

    • id: string
    • name: undefined | string
    • url: undefined | string
  • Checks if the provided instance is of type Image.

    Parameters

    • instance: object

      The instance to check.

    Returns instance is Image

    True if the instance is a Image, false otherwise.