copyWith method

MatexPairMetadata copyWith({
  1. String? baseCode,
  2. String? counterCode,
  3. MatexPairPipMetadata? pip,
  4. MatexPairTypeMetadata? type,
  5. MatexPairLotsMetadata? lots,
  6. MatexInstrumentMetadata? baseInstrumentMetadata,
  7. MatexInstrumentMetadata? counterInstrumentMetadata,
})

Implementation

MatexPairMetadata copyWith({
  String? baseCode,
  String? counterCode,
  MatexPairPipMetadata? pip,
  MatexPairTypeMetadata? type,
  MatexPairLotsMetadata? lots,
  MatexInstrumentMetadata? baseInstrumentMetadata,
  MatexInstrumentMetadata? counterInstrumentMetadata,
}) {
  return MatexPairMetadata(
    baseCode: baseCode ?? this.baseCode,
    counterCode: counterCode ?? this.counterCode,
    type: type ?? this.type,
    lots: lots ?? this.lots,
    pip: pip ?? this.pip,
    baseInstrumentMetadata:
        baseInstrumentMetadata ?? this.baseInstrumentMetadata,
    counterInstrumentMetadata:
        counterInstrumentMetadata ?? this.counterInstrumentMetadata,
  );
}