copyWith method

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

Implementation

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