How do I structure a csv for a collection with a custom data type?

I have a collection called students

students (

    name: string

    courses: List<course>

)

and a collection called lecturers

lecturers (

    name: string

)

Course is a custom datatype

course (

    name: string

    score: double

    lecturer: DocumentReference<lecturers>

)

I have the following csv file

name,courses
skye,["{'name': 'Math', 'score': 78.63, lecturer: '/lecturers/wwVoEiiI5Zar2gjywBqbGNQT9dk2'}"]

But when I try to upload the csv file it says there's a datatype mismatch, so how do I structure a csv with a custom data type so that I can upload it to firebase through the flutter flow firebase management page?

4
1 reply