asMap method

Map asMap()

The function returns a map with 'attributes' and 'itemID' keys and their corresponding values.

Implementation

Map asMap() => {
      'attributes': attributes,
      'itemID': itemID,
    };