Map<String, dynamic> toMap() { return <String, dynamic>{ 'noBargeInDuration': ?noBargeInDuration, 'totalDuration': ?totalDuration, }; }