copyWith method

SearchResults copyWith({
  1. String? expand,
  2. int? startAt,
  3. int? maxResults,
  4. int? total,
  5. List<IssueBean>? issues,
  6. List<String>? warningMessages,
  7. Map<String, dynamic>? names,
  8. Map<String, dynamic>? schema,
})

Implementation

SearchResults copyWith(
    {String? expand,
    int? startAt,
    int? maxResults,
    int? total,
    List<IssueBean>? issues,
    List<String>? warningMessages,
    Map<String, dynamic>? names,
    Map<String, dynamic>? schema}) {
  return SearchResults(
    expand: expand ?? this.expand,
    startAt: startAt ?? this.startAt,
    maxResults: maxResults ?? this.maxResults,
    total: total ?? this.total,
    issues: issues ?? this.issues,
    warningMessages: warningMessages ?? this.warningMessages,
    names: names ?? this.names,
    schema: schema ?? this.schema,
  );
}