AutoSecurityScheme.fromJson constructor
AutoSecurityScheme.fromJson()
Creates an AutoSecurityScheme from a json
object.
Implementation
factory AutoSecurityScheme.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 additionalFields =
json.parseAdditionalFields(prefixMapping, parsedFields);
return AutoSecurityScheme(
description: description,
descriptions: descriptions,
jsonLdType: jsonLdType,
proxy: proxy,
additionalFields: additionalFields,
);
}