copyWith method

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

Implementation

GetVoicesV2ResponseModel copyWith(
    {List<VoiceResponseModel>? voices,
    bool? hasMore,
    int? totalCount,
    dynamic nextPageToken}) {
  return GetVoicesV2ResponseModel(
      voices: voices ?? this.voices,
      hasMore: hasMore ?? this.hasMore,
      totalCount: totalCount ?? this.totalCount,
      nextPageToken: nextPageToken ?? this.nextPageToken);
}