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