toJson method
Implementation
Map<String, dynamic> toJson() => <String, Object?>{
'name': name ?? '',
'comment': comment ?? '',
'modified': modified ?? false,
if (valueAsString case final valueAsStringValue?)
'valueAsString': valueAsStringValue,
};