copyWith method

Input$CreateCommitOnBranchInput copyWith({
  1. Input$CommittableBranch? branch,
  2. String? clientMutationId()?,
  3. String? expectedHeadOid,
  4. Input$FileChanges? fileChanges()?,
  5. Input$CommitMessage? message,
})

Implementation

Input$CreateCommitOnBranchInput copyWith(
        {Input$CommittableBranch? branch,
        String? Function()? clientMutationId,
        String? expectedHeadOid,
        Input$FileChanges? Function()? fileChanges,
        Input$CommitMessage? message}) =>
    Input$CreateCommitOnBranchInput(
        branch: branch == null ? this.branch : branch,
        clientMutationId: clientMutationId == null
            ? this.clientMutationId
            : clientMutationId(),
        expectedHeadOid:
            expectedHeadOid == null ? this.expectedHeadOid : expectedHeadOid,
        fileChanges: fileChanges == null ? this.fileChanges : fileChanges(),
        message: message == null ? this.message : message);