copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ChatPhotos copyWith({
int? totalCount,
List<ChatPhoto>? photos,
dynamic extra,
int? clientId,
}) =>
ChatPhotos(
totalCount: totalCount ?? this.totalCount,
photos: photos ?? this.photos,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);