toJson method

Map<String, dynamic> toJson()

Implementation

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