copyWith method

UpdateTaskResult copyWith({
  1. ResultMetaObject? meta,
})

A copy with the given properties replaced; everything else, unknown keys included, is kept.

Implementation

UpdateTaskResult copyWith({
  ResultMetaObject? meta,
}) =>
    UpdateTaskResult.fromJson({
      ...toJson(),
      if (meta != null) '_meta': $encode(meta),
    });