copyWith method

ExecuteAPIRequestAction copyWith({
  1. ID? id,
  2. ID? requestID,
  3. List<RequestActionFieldEntity>? pathsFields,
  4. List<RequestActionFieldEntity>? urlParamsFields,
  5. List<RequestActionFieldEntity>? headersField,
  6. List<RequestActionFieldEntity>? bodyFields,
  7. List<RequestActionFieldEntity>? authFields,
  8. List<ActionEntity>? actionsIfSuccess,
  9. 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,
  );
}