toJson method
Implementation
Map<String, dynamic> toJson() => <String, Object?>{
'value': value?.toJson(),
if (parentListIndex case final parentListIndexValue?)
'parentListIndex': parentListIndexValue,
if (parentMapKey?.toJson() case final parentMapKeyValue?)
'parentMapKey': parentMapKeyValue,
if (parentField case final parentFieldValue?)
'parentField': parentFieldValue,
};