copyWith method

CreatePaymentModel copyWith({
  1. bool? success,
  2. int? code,
  3. String? description,
  4. Data? data,
})

Implementation

CreatePaymentModel copyWith({
  bool? success,
  int? code,
  String? description,
  Data? data,
}) =>
    CreatePaymentModel(
      success: success ?? this.success,
      code: code ?? this.code,
      description: description ?? this.description,
      data: data ?? this.data,
    );