toJSON method
Implementation
Map<String, dynamic> toJSON()=>{
'id': id,
'name': name,
'description': description,
'ownerId': ownerId,
'imgUrl': imgUrl,
'state': state,
'neomParameter': neomParameter?.toJSON(),
'neomFrequency': neomFrequency?.toJSON(),
};