asPayloadOrNull

Casts this ApiSchema as a Payload and retrieves its kotlin.String value. Returns null if the ApiSchema is not a Payload.