Skip to main content

MapData

Hierarchy

Index

Constructors

constructor

  • Returns MapData

Properties

metadata

metadata: Map<string, PrivateMetadata>

root

root: Field

type

Methods

publicsetRoot

  • setRoot(): void
  • Calculates and sets a root of the MapData Should be called before updating the NFT state!!!


    Returns void

publictoJSON

  • toJSON(): object
  • Converts a MapData to JSON


    Returns object

    map as JSON object

publicupdate

publicupdateField

publicupdateFile

publicupdateFileData

publicupdateMap

publicupdateMetadata

  • updates Metadata


    Parameters

    Returns void

publicupdateText

publicupdateTextData

publicstaticfromJSON

  • fromJSON(json: object, skipCalculatingMetadataRoot?: boolean): MapData
  • Parameters

    • json: object
    • skipCalculatingMetadataRoot: boolean = false

    Returns MapData