toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'name': name,
    'levels': levels.map((e) => e.toMap()),
    'defaultLevelId': defaultLevelId,
    'activeLevel': activeLevel,
    'defaultLevel': defaultLevel,
    'defaultLevelIndex': defaultLevelIndex,
    'activeLevelIndex': activeLevelIndex,
    'boundingBox': boundingBox?.toJson(),
  };
}