TransferStepDoc.fromFields constructor

TransferStepDoc.fromFields({
  1. required String fromAccountId,
  2. required String toAccountId,
  3. required int amount,
  4. List<Any> metadata = const [],
})

Implementation

TransferStepDoc.fromFields({
  required String fromAccountId,
  required String toAccountId,
  required int amount,
  List<Any> metadata = const [],
}) : super(
        TransferStep()
          ..fromAccountId = hex.decode(fromAccountId)
          ..toAccountId = hex.decode(toAccountId)
          ..amount = Int64(amount)
          ..setMetadata(metadata),
      );