toJson method

Map<String, Object?> toJson()

Implementation

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