Converts to a map.
Map<String, Object?> toMap() { return <String, Object?>{ 'drmType': type.index, 'licenseServerUrl': licenseServerUrl, }; }