DigestSecurityScheme.fromJson constructor
DigestSecurityScheme.fromJson()
Creates a DigestSecurityScheme from a json
object.
Implementation
factory DigestSecurityScheme.fromJson(
Map<String, dynamic> json,
PrefixMapping prefixMapping,
Set<String> parsedFields,
) {
final description = json.parseField<String>("description", parsedFields);
final descriptions =
json.parseMapField<String>("descriptions", parsedFields);
final jsonLdType = json.parseArrayField<String>("@type");
final proxy = json.parseUriField("proxy", parsedFields);
final name = json.parseField<String>("name", parsedFields);
final in_ = json.parseField<String>("in", parsedFields) ?? _defaultInValue;
final qop =
json.parseField<String>("qop", parsedFields) ?? _defaultQoPValue;
final additionalFields =
json.parseAdditionalFields(prefixMapping, parsedFields);
return DigestSecurityScheme(
description: description,
descriptions: descriptions,
jsonLdType: jsonLdType,
proxy: proxy,
name: name,
qop: qop,
in_: in_,
additionalFields: additionalFields,
);
}