decode

fun decode(source: String): GitHubTree

Return

the decoded tree

Parameters

source

JSON body returned by the Git Trees API

Throws

kotlinx.serialization.SerializationException

if the body is not a tree response