Map<String, dynamic> toJson() { return { 'items': items?.map((e) => e.toJson()).toList(), }..removeWhere((key, value) => value == null); }