build method

AllowTrustOperation build ()

Builds an operation

Implementation

AllowTrustOperation build() {
  bool tAuthorized =  _authorize == XdrTrustLineFlags.AUTHORIZED_FLAG.value;
  bool tAuthorizedToMaintain = _authorize == XdrTrustLineFlags.AUTHORIZED_TO_MAINTAIN_LIABILITIES_FLAG.value;
  AllowTrustOperation operation =
  new AllowTrustOperation(_trustor, _assetCode, tAuthorized, tAuthorizedToMaintain);
  if (_mSourceAccount != null) {
    operation.sourceAccount = _mSourceAccount;
  }
  return operation;
}