copyWith method
WitGeneratorConfig
copyWith({
- WitGeneratorInput? inputs,
- bool? jsonSerialization,
- bool? copyWith_,
- bool? equalityAndHashCode,
- bool? toString_,
- bool? generateDocs,
- Option<
String> ? fileHeader, - Option<
String> ? objectComparator, - bool? useNullForOption,
- bool? requiredOption,
- Int64TypeConfig? int64Type,
- bool? typedNumberLists,
- bool? asyncWorker,
- bool? sameClassUnion,
Returns a new instance by overriding the values passed as arguments
Implementation
WitGeneratorConfig copyWith({
WitGeneratorInput? inputs,
bool? jsonSerialization,
bool? copyWith_,
bool? equalityAndHashCode,
bool? toString_,
bool? generateDocs,
Option<String>? fileHeader,
Option<String>? objectComparator,
bool? useNullForOption,
bool? requiredOption,
Int64TypeConfig? int64Type,
bool? typedNumberLists,
bool? asyncWorker,
bool? sameClassUnion,
}) =>
WitGeneratorConfig(
inputs: inputs ?? this.inputs,
jsonSerialization: jsonSerialization ?? this.jsonSerialization,
copyWith_: copyWith_ ?? this.copyWith_,
equalityAndHashCode: equalityAndHashCode ?? this.equalityAndHashCode,
toString_: toString_ ?? this.toString_,
generateDocs: generateDocs ?? this.generateDocs,
fileHeader: fileHeader != null ? fileHeader.value : this.fileHeader,
objectComparator: objectComparator != null
? objectComparator.value
: this.objectComparator,
useNullForOption: useNullForOption ?? this.useNullForOption,
requiredOption: requiredOption ?? this.requiredOption,
int64Type: int64Type ?? this.int64Type,
typedNumberLists: typedNumberLists ?? this.typedNumberLists,
asyncWorker: asyncWorker ?? this.asyncWorker,
sameClassUnion: sameClassUnion ?? this.sameClassUnion);