Map<String, dynamic> toMap() { return <String, dynamic>{ 'id': id, 'sourcePhases': ?sourcePhases, 'wait': ?wait, }; }