def from_string(line: str) -> 'CredentialParams': """ Creates a new CredentialParams object filled with key-value pairs serialized as a string. :param line: a string with serialized key-value pairs as **"key1=value1;key2=value2;..."** Example: **"Key1=123;Key2=ABC;Key3=2016-09-16T00:00:00.00Z"** :return: a new CredentialParams object. """ map = StringValueMap.from_string(line) return CredentialParams(map)
def from_string(line): """ Creates a new ConnectionParams object filled with key-value pairs serialized as a string. :param line: a string with serialized key-value pairs as "key1=value1;key2=value2;..." Example: "Key1=123;Key2=ABC;Key3=2016-09-16T00:00:00.00Z" :return: a new ConnectionParams object. """ map = StringValueMap.from_string(line) return ConnectionParams(map)