CyclesNotificationResponse constructor

CyclesNotificationResponse({
  1. PrincipalId? createdCanisterId,
  2. Refund? refund,
  3. ToppedUp? toppedUp,
})

Implementation

factory CyclesNotificationResponse({
  $0.PrincipalId? createdCanisterId,
  Refund? refund,
  ToppedUp? toppedUp,
}) {
  final _result = create();
  if (createdCanisterId != null) {
    _result.createdCanisterId = createdCanisterId;
  }
  if (refund != null) {
    _result.refund = refund;
  }
  if (toppedUp != null) {
    _result.toppedUp = toppedUp;
  }
  return _result;
}