@override Map<String, dynamic> toJson() => <String, dynamic>{ 'story': story.toJson(), 'error': error.toJson(), 'error_type': errorType?.toJson(), '@type': constructor, };