toJSON method

Map<String, dynamic> toJSON()

Implementation

Map<String, dynamic> toJSON()=>{
  //'id': id, generated in firebase
  'name': name,
  'description': description,
  'href': href,
  'imgUrl': imgUrl,
  'ownerId': ownerId,
  'public': public,
  'chamberPresets': chamberPresets?.map((appReleaseItem) => appReleaseItem.toJSON()).toList() ?? [],
  'position': jsonEncode(position),
  'ownerType': ownerType.name,
  'isModifiable': isModifiable
};