copyWith method
ExecuteAPIRequestAction
copyWith({
- ID? id,
- ID? requestID,
- List<
RequestActionFieldEntity> ? pathsFields, - List<
RequestActionFieldEntity> ? urlParamsFields, - List<
RequestActionFieldEntity> ? headersField, - List<
RequestActionFieldEntity> ? bodyFields, - List<
RequestActionFieldEntity> ? authFields, - List<
ActionEntity> ? actionsIfSuccess, - List<
ActionEntity> ? actionsIfError,
Implementation
ExecuteAPIRequestAction copyWith({
ID? id,
ID? requestID,
List<RequestActionFieldEntity>? pathsFields,
List<RequestActionFieldEntity>? urlParamsFields,
List<RequestActionFieldEntity>? headersField,
List<RequestActionFieldEntity>? bodyFields,
List<RequestActionFieldEntity>? authFields,
List<ActionEntity>? actionsIfSuccess,
List<ActionEntity>? actionsIfError,
}) {
return ExecuteAPIRequestAction(
id: id ?? this.id,
requestID: requestID ?? this.requestID,
pathsFields: pathsFields ?? this.pathsFields,
urlParamsFields: urlParamsFields ?? this.urlParamsFields,
headersField: headersField ?? this.headersField,
bodyFields: bodyFields ?? this.bodyFields,
authFields: authFields ?? this.authFields,
actionsIfSuccess: actionsIfSuccess ?? this.actionsIfSuccess,
actionsIfError: actionsIfError ?? this.actionsIfError,
);
}