copyWith method

  1. @override
BackendRequestModel copyWith({
  1. String? documentID,
  2. String? description,
  3. String? appId,
  4. String? authorId,
  5. String? name,
  6. String? sendTo,
  7. List<Map<String, String>>? collections,
  8. bool? processed,
  9. RequestType? requestType,
})
override

Implementation

@override
BackendRequestModel copyWith({
  String? documentID,
  String? description,
  String? appId,
  String? authorId,
  String? name,
  String? sendTo,
  List<Map<String, String>>? collections,
  bool? processed,
  RequestType? requestType,
}) {
  return BackendRequestModel(
    documentID: documentID ?? this.documentID,
    description: description ?? this.description,
    appId: appId ?? this.appId,
    authorId: authorId ?? this.authorId,
    name: name ?? this.name,
    sendTo: sendTo ?? this.sendTo,
    collections: collections ?? this.collections,
    processed: processed ?? this.processed,
    requestType: requestType ?? this.requestType,
  );
}