AsiB
AsiB

Reputation: 147

get document fields data type with firebase

I would like to get a document from firebase and find out the document fields type. for example field Name datatype String, field Age datatype int

How can I do that?

Thank you!

Upvotes: 0

Views: 153

Answers (1)

Faaatman
Faaatman

Reputation: 495

You can check each variable type as follow:

print(foo.runtimeType);

Upvotes: 1

Related Questions