copyWith method

TerminalInfoResponse copyWith({
  1. String? name,
  2. String? id,
  3. String? link,
  4. String? description,
  5. TerminalType? type,
  6. num? defaultPrice,
})

Implementation

TerminalInfoResponse copyWith({
  String? name,
  String? id,
  String? link,
  String? description,
  TerminalType? type,
  num? defaultPrice,
}) {
  return TerminalInfoResponse(
    name: name ?? this.name,
    defaultPrice: defaultPrice ?? this.defaultPrice,
    description: description ?? this.description,
    type: type ?? this.type,
    link: link ?? this.link,
    id: id ?? this.id,
  );
}