toJson method

Map<String, dynamic> toJson()

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,
    };