Security.fromJson constructor
Implementation
factory Security.fromJson(Map<String, dynamic> json) {
return fromJsonWithLogging(json, (json) {
if (json.isEmpty) {
return const Security();
} else {
final name = json.keys.first;
return Security(
name: name,
scopes: List<String>.from(json[name] ?? []),
);
}
});
}