copyWith method

Mapping copyWith({
  1. String? dataType,
  2. dynamic sourceValue,
  3. String? sourceField,
  4. String? targetField,
  5. String? type,
})

✅ Add copyWith method

Implementation

Mapping copyWith({
  String? dataType,
  dynamic sourceValue,
  String? sourceField,
  String? targetField,
  String? type,
}) {
  return Mapping(
    dataType: dataType ?? this.dataType,
    sourceValue: sourceValue ?? this.sourceValue,
    sourceField: sourceField ?? this.sourceField,
    targetField: targetField ?? this.targetField,
    type: type ?? this.type,
  );
}