computeTransformation method
Implementation
@override
dynamic computeTransformation(Object? json) {
if (json is Map) {
if (keys.isEmpty) {
return json.values;
} else if (keys.length == 1) {
var key = keys.first;
return _getKeyValue(json, key);
} else {
return keys.map((k) => _getKeyValue(json, k)).toList();
}
} else if (json is List) {
if (keys.isEmpty) {
return json;
} else {
return json.map(computeTransformation).toList();
}
}
return [];
}