Include? fromString(String val) { final override = { 'all': Include.all, 'participated': Include.participated, }[val]; // ignore: unnecessary_this return this.contains(override) ? override : null; }