copyWithWrapped method

GetVoicesV2ResponseModel copyWithWrapped({
  1. Wrapped<List<VoiceResponseModel>>? voices,
  2. Wrapped<bool>? hasMore,
  3. Wrapped<int>? totalCount,
  4. Wrapped? nextPageToken,
})

Implementation

GetVoicesV2ResponseModel copyWithWrapped(
    {Wrapped<List<VoiceResponseModel>>? voices,
    Wrapped<bool>? hasMore,
    Wrapped<int>? totalCount,
    Wrapped<dynamic>? nextPageToken}) {
  return GetVoicesV2ResponseModel(
      voices: (voices != null ? voices.value : this.voices),
      hasMore: (hasMore != null ? hasMore.value : this.hasMore),
      totalCount: (totalCount != null ? totalCount.value : this.totalCount),
      nextPageToken:
          (nextPageToken != null ? nextPageToken.value : this.nextPageToken));
}