Data constructor

const Data({
  1. String? code,
  2. String? content,
  3. @Default([]) List<Ownership> ownerships,
  4. Ledger? ledger,
  5. @Default([]) List<Recipient> recipients,
})

Implementation

const factory Data({
  /// Smart contract code (hexadecimal),
  String? code,

  /// Rree zone for data hosting (string or hexadecimal)
  String? content,

  /// Authorization/Delegations containing list of secrets and their authorized public keys to proof the ownership
  @Default([]) final List<Ownership> ownerships,

  /// Asset transfers
  Ledger? ledger,

  /// For non asset transfers, the list of recipients of the transaction (e.g Smart contract interactions)
  @Default([]) final List<Recipient> recipients,
}) = _Data;