toJson method

  1. @override
Map<String, Object?> toJson()
override

Implementation

@override
Map<String, Object?> toJson() => super.toJson()
  ..addAll({
    'body': body.map((e) => e.toJson()),
    'leftDelim': leftDelim,
    'rightDelim': rightDelim,
    if (middle.isNotEmpty) 'middle': middle,
  });