Map<String, dynamic> toMap() { return <String, dynamic>{ 'action': action, 'maxTimeSeconds': maxTimeSeconds, 'reason': reason, 'state': state, }; }