AceSecurityScheme.fromJson constructor
AceSecurityScheme.fromJson()
Creates an AceSecurityScheme from a json
object.
Implementation
factory AceSecurityScheme.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 as = json.parseUriField("ace:as", parsedFields);
final cnonce = json.parseField<bool>("ace:cnonce", parsedFields);
final audience = json.parseField<String>("ace:audience", parsedFields);
final scopes =
json.parseArrayField<String>("ace:scopes", parsedFields: parsedFields);
final additionalFields =
json.parseAdditionalFields(prefixMapping, parsedFields);
return AceSecurityScheme(
description: description,
descriptions: descriptions,
jsonLdType: jsonLdType,
proxy: proxy,
as: as,
cnonce: cnonce,
audience: audience,
scopes: scopes,
additionalFields: additionalFields,
);
}