toJson method
Returns a JSON representation of this.
Implementation
@override
Map<String, Object?> toJson() => {
'runtimeType': 'DirPath',
'path': path,
'name': (name == null
? const None().toJson()
: Option.fromValue(name).toJson()),
'all-recursive': allRecursive,
};