first of all I've seen answers : here but for me coming from android and angular is just mind blowing to have to write so much code (where in android and angular it takes one line) plus answers are not the latest one so wonder if there is any better way nowadays
for clarification here is my example:
struct User{
let fistName:String
let lastName:String
}
and I retrieving data with :
Firestoer.firestore().collection("users").document('someId').getDocument{
(snapshot,error) in
}
The question is how to assign snapshot values to User object values ith one line of code - soething like user = snapshot -ish .