fromJSONToken static method

DynCallCredentialHTTP? fromJSONToken(
  1. Object? json
)

Implementation

static DynCallCredentialHTTP? fromJSONToken(Object? json) {
  if (json is Map) {
    var bearerCredential = BearerCredential.fromJSONToken(json);
    return bearerCredential != null
        ? DynCallCredentialHTTP(bearerCredential)
        : null;
  }
  return null;
}