Retrieves the value of a snapshot and converts it to an instance of
caller-specified type.
Throws DecodingError.valueNotFound
if the document does not exist and T is not an Optional.
See Database.Decoder for more details about the decoding process.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-05-11 UTC."],[],[],null,["DataSnapshot \n\n public extension DataSnapshot\n\n- `\n ``\n ``\n `\n\n [data(as:decoder:)](#/s:So15FIRDataSnapshotC21FirebaseDatabaseSwiftE4data2as7decoderxxm_0c6SharedE00C11DataDecoderCtKSeRzlF)`\n ` \n Retrieves the value of a snapshot and converts it to an instance of\n caller-specified type.\n Throws `DecodingError.valueNotFound`\n if the document does not exist and `T` is not an `Optional`.\n\n See [Database.Decoder](../Extensions/Database.html#/s:So11FIRDatabaseC21FirebaseDatabaseSwiftE7Decodera) for more details about the decoding process. \n\n Declaration \n Swift \n\n func data\u003cT: Decodable\u003e(as type: T.Type,\n decoder: Database.Decoder =\n Database.Decoder()) throws -\u003e T"]]