fromKeyValue static method
Implementation
static DartDeclaration fromKeyValue(String key, dynamic val) {
var dartDeclaration = DartDeclaration();
dartDeclaration = fromCommand(
Commands.valueCommands,
dartDeclaration,
testSubject: val,
key: key.cleaned(),
value: val,
);
dartDeclaration = fromCommand(
Commands.keyComands,
dartDeclaration,
testSubject: key,
key: key.cleaned(),
value: val,
);
return dartDeclaration;
}