def convert_to_dict(passport: str) -> dict:
    """Convert a single passport row from the input into a dict."""

    passport_dict = {}

    passport_split = passport[1:].split(" ")

    for field in passport_split:

        field_value = field.split(":")

        passport_dict[field_value[0]] = field_value[1]

    return passport_dict