Mappedin JS - v6.14.0
    Preparing search index...

    Class ImageMetaData

    A class representing image link data within the map.

    Hierarchy

    • default
      • ImageMetaData
    Index

    Properties

    Accessors

    Methods

    Properties

    id: string

    The identity of the map metadata.

    Accessors

    • get altText(): string | undefined

      Gets the alt text of the image.

      Returns string | undefined

      The alt text of the image.

    • get name(): string | undefined

      Gets the alt text of the image.

      Returns string | undefined

      The alt text of the image.

      Use altText instead.

    • get url(): string | undefined

      Gets the url of the image.

      Returns string | undefined

      The url of the image.

    Methods

    • Serializes the image data to JSON.

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

      An object representing the image.

    • Checks if the provided instance is of type Image.

      Parameters

      • instance: object

        The instance to check.

      Returns instance is ImageMetaData

      True if the instance is a Image, false otherwise.