MitreAttack.fromJson constructor
MitreAttack.fromJson(
- Map json_
Implementation
MitreAttack.fromJson(core.Map json_)
: this(
additionalTactics: json_.containsKey('additionalTactics')
? (json_['additionalTactics'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
additionalTechniques: json_.containsKey('additionalTechniques')
? (json_['additionalTechniques'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
primaryTactic: json_.containsKey('primaryTactic')
? json_['primaryTactic'] as core.String
: null,
primaryTechniques: json_.containsKey('primaryTechniques')
? (json_['primaryTechniques'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
version: json_.containsKey('version')
? json_['version'] as core.String
: null,
);