toIterableGrpcArguments function

List<Argument> toIterableGrpcArguments(
  1. List? args
)

Implementation

List<Argument> toIterableGrpcArguments(List? args) {
  return (args ?? [])
      .map((e) {
        if (e is TransactionResult) {
          return e.toJson();
        }
        return e;
      })
      .cast<Map<String, dynamic>>()
      .map(argumentToGrpcArgument)
      .toList();
}