Map<String, dynamic> toJson() { return { 'trades': trades.map((e) => e.toJson()), 'before': before, 'after': after, }; }