Map<String, dynamic> toJson() => { 'element_id': elementId, 'resources_id': this.resources.map((res) => res.resourceId.toString()).toList() };