encodeTo static method
Implementation
static List<Object> encodeTo(List to) {
return to.map((i) {
switch (i.runtimeType) {
case SimpleRecipient:
return (i as SimpleRecipient).toBroadcastJson();
case AssetRecipient:
return (i as AssetRecipient).toJson();
default:
throw ArgumentError('Transaction type currently not supported');
}
}).toList();
}