Map<String, dynamic> toJson() => { "elements": List<dynamic>.from(elements.map((x) => x.toJson())), };