toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'url': url,
    'explanations': explanations.map((e) => e.toJson()).toList(),
    'children': children.map((e) => e.toJson()).toList(),
  };
}