toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final data = <String, Object?>{};
  data['body'] = body;
  data['type'] = type;
  return data;
}