Object to Map serializer
@override Map<String, dynamic> toJson() { return { '@type': 'storyArea', if (extra != null) '@extra': extra, 'position': position, 'type': type }; }