Operation constructor

Operation({
  1. String? name,
  2. Any? metadata,
  3. bool? done,
  4. Status? error,
  5. Any? response,
})

Implementation

factory Operation({
  $core.String? name,
  $2.Any? metadata,
  $core.bool? done,
  $3.Status? error,
  $2.Any? response,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (metadata != null) {
    _result.metadata = metadata;
  }
  if (done != null) {
    _result.done = done;
  }
  if (error != null) {
    _result.error = error;
  }
  if (response != null) {
    _result.response = response;
  }
  return _result;
}