merge method

Merges current AISmartRepliesConfiguration with other

Implementation

AISmartRepliesConfiguration merge(AISmartRepliesConfiguration? other) {
  if (other == null) return this;
  return copyWith(
    smartRepliesStyle: other.smartRepliesStyle,
    theme: other.theme,
    emptyStateText: other.emptyStateText,
    onError: other.onError ?? onError,
    errorStateText: other.errorStateText,
    customView: other.customView,
    onClick: other.onClick,
    loadingStateText: other.loadingStateText,
    emptyStateView: other.emptyStateView,
    loadingStateView: other.loadingStateView,
    errorStateView: other.errorStateView,
    errorIconUrl: other.errorIconUrl,
    emptyIconUrl: other.emptyIconUrl,
    loadingIconUrl: other.loadingIconUrl,
    apiConfiguration: other.apiConfiguration,
  );
}