Map<String, int?>? toDateMap() { if (this is FlexiDateData && this.isValid) { return (this as FlexiDateData).toMap(); } else { return null; } }