toJson method
Implementation
Map<String, Object?> toJson() => {
'package': package,
if (axes != null) 'axes': axes,
'file': file,
'scenario': scenario,
'position': position,
if (name != null) 'name': name,
if (what.isNotEmpty) 'what': what,
};