Map<String, dynamic> toMap() { return <String, dynamic>{ 'endTimeoutMs': endTimeoutMs, 'maxLengthMs': maxLengthMs, }; }