toMap method

Map<String, dynamic> toMap()

Converts items to json encodable Map to store their layout.

Implementation

Map<String, dynamic> toMap() {
  return {"item_id": identifier, "layout": layoutData.toMap()};
}