fromResources

fun fromResources(context: ERROR CLASS: Symbol not found for Context, resource: Int): AuthorizationConfiguration

Reads a JSON file from resources and converts it into an AuthorizationConfiguration object.

Return

The AuthorizationConfiguration object created from the JSON file.

Parameters

context

The context used to access resources.

resource

The resource ID of the JSON file.