Operation constructor

Operation({
  1. Int64? counter,
  2. String? source,
  3. Int64? fee,
  4. Int64? gasLimit,
  5. Int64? storageLimit,
  6. Operation_OperationKind? kind,
  7. RevealOperationData? revealOperationData,
  8. TransactionOperationData? transactionOperationData,
  9. DelegationOperationData? delegationOperationData,
})

Implementation

factory Operation({
  $fixnum.Int64? counter,
  $core.String? source,
  $fixnum.Int64? fee,
  $fixnum.Int64? gasLimit,
  $fixnum.Int64? storageLimit,
  Operation_OperationKind? kind,
  RevealOperationData? revealOperationData,
  TransactionOperationData? transactionOperationData,
  DelegationOperationData? delegationOperationData,
}) {
  final _result = create();
  if (counter != null) {
    _result.counter = counter;
  }
  if (source != null) {
    _result.source = source;
  }
  if (fee != null) {
    _result.fee = fee;
  }
  if (gasLimit != null) {
    _result.gasLimit = gasLimit;
  }
  if (storageLimit != null) {
    _result.storageLimit = storageLimit;
  }
  if (kind != null) {
    _result.kind = kind;
  }
  if (revealOperationData != null) {
    _result.revealOperationData = revealOperationData;
  }
  if (transactionOperationData != null) {
    _result.transactionOperationData = transactionOperationData;
  }
  if (delegationOperationData != null) {
    _result.delegationOperationData = delegationOperationData;
  }
  return _result;
}