copyWith method
MatexPairMetadata
copyWith({
- String? baseCode,
- String? counterCode,
- MatexPairPipMetadata? pip,
- MatexPairTypeMetadata? type,
- MatexPairLotsMetadata? lots,
- MatexInstrumentMetadata? baseInstrumentMetadata,
- 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,
);
}