toJson method
Implementation
Map<String, dynamic> toJson() => <String, Object?>{
'source': source?.toJson(),
if (parentListIndex case final parentListIndexValue?)
'parentListIndex': parentListIndexValue,
if (parentField is String || parentField is int
? parentField
: parentField?.toJson()
case final parentFieldValue?)
'parentField': parentFieldValue,
};