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