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