copyWith method

ApiResponse copyWith({
  1. int? status,
  2. String? expiryDate,
  3. int? maxLaunch,
  4. String? message,
  5. Map<String, dynamic>? developerDetails,
})

Implementation

ApiResponse copyWith({
  int? status,
  String? expiryDate,
  int? maxLaunch,
  String? message,
  Map<String, dynamic>? developerDetails,
}) {
  return ApiResponse(
    status: status ?? this.status,
    expiryDate: expiryDate ?? this.expiryDate,
    maxLaunch: maxLaunch ?? this.maxLaunch,
    message: message ?? this.message,
    developerDetails: developerDetails ?? this.developerDetails,
  );
}